File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1369,6 +1369,13 @@ test "expectError demo" {
13691369 {#syntax#}var{#endsyntax#} when declaring a variable. This causes less work for both
13701370 humans and computers to do when reading code, and creates more optimization opportunities.
13711371 </p>
1372+ <p>
1373+ The {#syntax#}extern{#endsyntax#} keyword or {#link|@extern#} builtin function can be used to link against a variable that is exported
1374+ from another object. The {#syntax#}export{#endsyntax#} keyword or {#link|@export#} builtin function
1375+ can be used to make a variable available to other objects at link time. In both cases,
1376+ the type of the variable must be C ABI compatible.
1377+ </p>
1378+ {#see_also|Exporting a C Library#}
13721379
13731380 {#header_open|Identifiers#}
13741381 <p>
@@ -1396,13 +1403,6 @@ const Color = enum {
13961403};
13971404const color: Color = .@"really red";
13981405 {#code_end#}
1399- <p>
1400- The {#syntax#}extern{#endsyntax#} keyword or {#link|@extern#} builtin function can be used to link against a variable that is exported
1401- from another object. The {#syntax#}export{#endsyntax#} keyword or {#link|@export#} builtin function
1402- can be used to make a variable available to other objects at link time. In both cases,
1403- the type of the variable must be C ABI compatible.
1404- </p>
1405- {#see_also|Exporting a C Library#}
14061406 {#header_close#}
14071407
14081408 {#header_open|Container Level Variables#}
You can’t perform that action at this time.
0 commit comments