Fixed compile error on gcc:
renamed 'typeof' function pointer in HSQAPI to 'type_of' to avoid naming collision (gcc implements it's own typeof keyword) https://gcc.gnu.org/onlinedocs/gcc/Typeof.html
This commit is contained in:
2
dependencies/sqrat/include/sqmodule.h
vendored
2
dependencies/sqrat/include/sqmodule.h
vendored
@@ -205,7 +205,7 @@ extern "C" {
|
||||
SQRESULT (*setclosureroot)(HSQUIRRELVM v, SQInteger idx);
|
||||
SQRESULT (*getclosureroot)(HSQUIRRELVM v, SQInteger idx);
|
||||
void (*pushthread)(HSQUIRRELVM v, HSQUIRRELVM thread);
|
||||
SQRESULT (*typeof)(HSQUIRRELVM v, SQInteger idx);
|
||||
SQRESULT (*type_of)(HSQUIRRELVM v, SQInteger idx);
|
||||
SQHash (*gethash)(HSQUIRRELVM v, SQInteger idx);
|
||||
SQRELEASEHOOK (*getreleasehook)(HSQUIRRELVM v, SQInteger idx);
|
||||
SQRESULT (*getfunctioninfo)(HSQUIRRELVM v, SQInteger level, SQFunctionInfo* fi);
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
#define sq_pushnull SqModule::api->pushnull
|
||||
#define sq_pushthread SqModule::api->pushthread
|
||||
#define sq_gettype SqModule::api->gettype
|
||||
#define sq_typeof SqModule::api->typeof
|
||||
#define sq_typeof SqModule::api->type_of
|
||||
#define sq_getsize SqModule::api->getsize
|
||||
#define sq_gethash SqModule::api->gethash
|
||||
#define sq_getbase SqModule::api->getbase
|
||||
|
||||
Reference in New Issue
Block a user