Difference between revisions of "Extern"

From Mesham
Jump to navigationJump to search
(Created page with '== Syntax == extern[location] Where ''location'' is optional == Semantics == Provided as additional allocation type information, this tells the compiler NOT to allocate memor…')
 
m (4 revisions imported)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Syntax ==
 
== Syntax ==
  
extern[location]
+
extern[]
  
Where ''location'' is optional
+
== Semantics ==
  
== Semantics ==
+
Provided as additional allocation type information, this tells the compiler NOT to allocate memory for the variable as this has been already done externally.
  
Provided as additional allocation type information, this tells the compiler NOT to allocate memory for the variable as this has been already done externally. The ''location'' argument is optional and just tells the compiler where the variable is to be found (e.g. a C header file) if required.
+
''Since: Version 0.5''
  
 
[[Category:Type Library]]
 
[[Category:Type Library]]
[[Category:Composite Types]]
+
[[Category:Compound Types]]
 
[[Category:Attribute Types]]
 
[[Category:Attribute Types]]

Latest revision as of 15:44, 15 April 2019

Syntax

extern[]

Semantics

Provided as additional allocation type information, this tells the compiler NOT to allocate memory for the variable as this has been already done externally.

Since: Version 0.5