shiMusa / construct

(Jai) `#insert #run construct(...)` allows to assign `struct`s as constants during compile time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

construct

(Jai) #insert #run construct(...) allows to assign structs as constants during compile time.

See example.jai on how to use.

Currently, pointers are not allowed as struct members!

But most basic types are:

  • intrinsic data types (s8, u8, etc.)
  • strings
  • arrays
  • enums
  • (polymorphic) structs
  • nestings thereof

About

(Jai) `#insert #run construct(...)` allows to assign `struct`s as constants during compile time.