This commit is contained in:
2026-06-23 17:22:41 +02:00
parent f16f352d1e
commit 2f68fc966a
16 changed files with 809 additions and 38 deletions
+12
View File
@@ -12,6 +12,10 @@ call_mapper :: func(mapper native.Imported_Mapper) c_int {
return mapper?(21)
}
enum_identity :: c_func(value native.Imported_Enum) native.Imported_Enum {
return value
}
main :: func() void {
_ = native.imported_add(pass_alias(20), 22)
_ = native.imported_scalar(3, 4)
@@ -19,6 +23,14 @@ main :: func() void {
_ = native.imported_read(native.imported_handle()?)
_ = native.imported_string("hello")
_ = native.imported_apply(double_value, 21)
enum_value native.Imported_Enum :: native.IMPORTED_ENUM_NEGATIVE
enum_same native.Imported_Enum :: native.IMPORTED_ENUM_SAME
_ = native.imported_enum_check(enum_value, native.IMPORTED_ENUM_VALUE)
_ = native.imported_enum_variadic(-2, enum_same)
enum_record native.Imported_Enum_Record :: native.Imported_Enum_Record { value = native.IMPORTED_ENUM_BACK }
_ = native.imported_enum_record(enum_record)
_ = native.imported_enum_apply(enum_identity, native.imported_enum_global)
_ = native.IMPORTED_ANON_ENUM
_ = call_mapper(double_value)
_ = native.configured_value(9)
_ = native.IMPORTED_SHADOW_OBJECT