restricted c header imports
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
native :: import "../include/native.h"
|
||||
|
||||
pass_alias :: func(value native.imported_int_alias) native.imported_int {
|
||||
return value
|
||||
}
|
||||
|
||||
main :: func() void {
|
||||
_ = native.imported_add(pass_alias(20), 22)
|
||||
_ = native.imported_scalar(3, 4)
|
||||
_ = native.child_value(7)
|
||||
_ = native.imported_read(native.imported_handle()?)
|
||||
_ = native.configured_value(9)
|
||||
}
|
||||
Reference in New Issue
Block a user