Foreign variables, exporting some of the info to the c program, compile errors though

This commit is contained in:
Krzosa Karol
2022-06-18 16:01:05 +02:00
parent 0ed4f62557
commit e63dc0322a
7 changed files with 47 additions and 11 deletions

View File

@@ -14,10 +14,10 @@ Windows_Bitmap :: struct
hdc: HDC
dib: HBITMAP
Type_ID :: U64
Type_ID :: S32
Type_Info_Kind :: enum
TYPE_NONE
TYPE_S64 // FIRST_NUMERIC
TYPE_S64 :: 7 // FIRST_NUMERIC
TYPE_S32
TYPE_S16
TYPE_S8
@@ -64,7 +64,8 @@ Type_Info :: struct
struct_member_count: S32
fields: *Type_Info_Struct_Field
type_infos: []*Type_Info
type_infos_len: U32 #foreign
type_infos : *Type_Info #foreign
Bitmap :: struct