mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Functions are successfully called, read more
Return keyword is not yet implemented. Functions are untested. See #163
This commit is contained in:
@@ -9,12 +9,12 @@ typedef enum Toy_FunctionType {
|
||||
TOY_FUNCTION_NATIVE,
|
||||
} Toy_FunctionType;
|
||||
|
||||
typedef union Toy_FunctionModule {
|
||||
typedef struct Toy_FunctionModule {
|
||||
Toy_FunctionType type;
|
||||
Toy_Module module;
|
||||
} Toy_FunctionModule;
|
||||
|
||||
typedef union Toy_FunctionNative {
|
||||
typedef struct Toy_FunctionNative {
|
||||
Toy_FunctionType type;
|
||||
void* native; //TODO: replace with the native function pointer
|
||||
} Toy_FunctionNative;
|
||||
|
||||
Reference in New Issue
Block a user