26 |
|
}; |
27 |
|
} sl_arg; |
28 |
|
|
29 |
< |
typedef uint16_t (ONICALL *sl_func)(void* dontuse0, uint32_t numargs, sl_arg args[], void* dontuse1, void* dontuse2, sl_arg* ret); |
29 |
> |
typedef struct { |
30 |
> |
char* name; |
31 |
> |
char* calllocation; //maybe |
32 |
> |
} sl_callinfo; |
33 |
> |
|
34 |
> |
typedef uint16_t (ONICALL *sl_func)(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], void* dontuse1, void* dontuse2, sl_arg* ret); |
35 |
|
|
36 |
|
uint16_t ONICALL SLrScript_Command_Register_ReturnType(char* name, char* desc, char* argfmt, sl_type type, sl_func callback); |
37 |
|
uint16_t ONICALL SLrScript_Command_Register_Void(char* name, char* desc, char* argfmt, sl_func callback); |