-
Notifications
You must be signed in to change notification settings - Fork 81
Compiler directives
Paolo Angeli edited this page Oct 20, 2019
·
22 revisions
Directive | Meaning |
---|---|
#assert() | Static compiler assertion eg. used to target a specific OS |
#compiler | ... |
#complete | ... |
#expand | ... |
#deprecated | Used to mark a piece of code that has to be refactored, generates a compiler warning with the specified message |
#foreign | Declare something coming from an external C obj or DLL compatible library |
#IF | Entry point for conditional build |
#import | Import a Library file |
#insert | ... |
#intrinsic | Use the intrinsic version of the procedure based on CPU specific instruction. |
#load | Load another Jai file |
#must | Used to mark function's return values that must be assigned to a variable |
#no_abc{} | No array bounds checking |
#poke_name | ... |
#run | Run a procedure at compile time |
#scope_file | The declarations in the following block are restricted to the current file |
#through | Used in switch-like statements |
#type | Used in polymorphic procedures arguments, polymorphic structs and procedure pointers |
Game engine directives for the game editor connected to the fields of entities data structures
Directive | Meaning |
---|---|
@NoSerialize | The field won't be saved in the level file |
@Vn | Where n is a number. Related to the Entity version. |
@Vn-m | Where n and m are numbers. Related to the Entity version. |
@Pid | Unique identifier of the entity |
@DoNotDisplay | By default the loaded entity won't be displayed |
@PrintLike | ... |
These documents were verified using Grammarly free browser plugin for Chrome. Please use some spell checker before submitting new content.
- Variables and assignments
- Language data types
- Simple user-defined data types
- Expressions and operators
- Type-casting
- Pointers
- Declarations
- Arguments / Parameters
- Return values
- Overloading / Polymorhism
- Advanced features
- Lambdas
- Arrays
- Strings
- Composition of Structs
- Metaprogramming
- Templates / Generics