Skip to content

Commit 8052b7b

Browse files
committed
Add exporting of Struct definitions
1 parent 27bc14b commit 8052b7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/langmodule/lang/lib.lang

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ fn.moduleExportFunctionPointerVariable(funcFromLib, fn.inc)
2929

3030
fn.moduleExportFunctionPointerVariable(finalFuncFromLib, fn.dec, 1)
3131

32+
# Structs
33+
&ExampleLibStruct = {
34+
$val
35+
$text{?TEXT}
36+
$int{?INT}
37+
}
38+
fn.moduleExportCollectionVariable(ExampleLibStruct, &ExampleLibStruct)
39+
3240
# Exporting pointers
3341
$internalVariable = 42
3442
fn.moduleExportNormalVariable(pointerFromLib, $[internalVariable])

0 commit comments

Comments
 (0)