1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Exporn newlly added Squirrel API that is used to improve overloaded methods.

This commit is contained in:
Sandu Liviu Catalin 2018-10-31 20:28:18 +02:00
parent 0e96cc73a9
commit 1757e8b7c4
3 changed files with 16 additions and 0 deletions

View File

@ -115,6 +115,7 @@ extern "C" {
typedef SQRESULT (*SqLibAPI_getclosureinfo)(HSQUIRRELVM v,SQInteger idx,SQInteger *nparams,SQInteger *nfreevars);
typedef SQRESULT (*SqLibAPI_getclosurename)(HSQUIRRELVM v,SQInteger idx);
typedef SQRESULT (*SqLibAPI_setnativeclosurename)(HSQUIRRELVM v,SQInteger idx,const SQChar *name);
typedef SQRESULT (*SqLibAPI_getnativeclosurepointer)(HSQUIRRELVM v,SQInteger idx,SQFUNCTION *f);
typedef SQRESULT (*SqLibAPI_setinstanceup)(HSQUIRRELVM v, SQInteger idx, SQUserPointer p);
typedef SQRESULT (*SqLibAPI_getinstanceup)(HSQUIRRELVM v, SQInteger idx, SQUserPointer *p,SQUserPointer typetag);
typedef SQRESULT (*SqLibAPI_setclassudsize)(HSQUIRRELVM v, SQInteger idx, SQInteger udsize);
@ -164,6 +165,7 @@ extern "C" {
typedef const SQChar* (*SqLibAPI_getlocal)(HSQUIRRELVM v,SQUnsignedInteger level,SQUnsignedInteger idx);
typedef SQRESULT (*SqLibAPI_getcallee)(HSQUIRRELVM v);
typedef const SQChar* (*SqLibAPI_getfreevariable)(HSQUIRRELVM v,SQInteger idx,SQUnsignedInteger nval);
typedef const SQChar* (*SqLibAPI_getonefreevariable)(HSQUIRRELVM v,SQUnsignedInteger nval);
typedef SQRESULT (*SqLibAPI_throwerror)(HSQUIRRELVM v,const SQChar *err);
typedef SQRESULT (*SqLibAPI_throwobject)(HSQUIRRELVM v);
typedef void (*SqLibAPI_reseterror)(HSQUIRRELVM v);
@ -304,6 +306,7 @@ extern "C" {
SqLibAPI_getclosureinfo getclosureinfo;
SqLibAPI_getclosurename getclosurename;
SqLibAPI_setnativeclosurename setnativeclosurename;
SqLibAPI_getnativeclosurepointer getnativeclosurepointer;
SqLibAPI_setinstanceup setinstanceup;
SqLibAPI_getinstanceup getinstanceup;
SqLibAPI_setclassudsize setclassudsize;
@ -353,6 +356,7 @@ extern "C" {
SqLibAPI_getlocal getlocal;
SqLibAPI_getcallee getcallee;
SqLibAPI_getfreevariable getfreevariable;
SqLibAPI_getonefreevariable getonefreevariable;
SqLibAPI_throwerror throwerror;
SqLibAPI_throwobject throwobject;
SqLibAPI_reseterror reseterror;
@ -489,6 +493,7 @@ extern "C" {
extern SqLibAPI_getclosureinfo SqLib_getclosureinfo;
extern SqLibAPI_getclosurename SqLib_getclosurename;
extern SqLibAPI_setnativeclosurename SqLib_setnativeclosurename;
extern SqLibAPI_getnativeclosurepointer SqLib_getnativeclosurepointer;
extern SqLibAPI_setinstanceup SqLib_setinstanceup;
extern SqLibAPI_getinstanceup SqLib_getinstanceup;
extern SqLibAPI_setclassudsize SqLib_setclassudsize;
@ -538,6 +543,7 @@ extern "C" {
extern SqLibAPI_getlocal SqLib_getlocal;
extern SqLibAPI_getcallee SqLib_getcallee;
extern SqLibAPI_getfreevariable SqLib_getfreevariable;
extern SqLibAPI_getonefreevariable SqLib_getonefreevariable;
extern SqLibAPI_throwerror SqLib_throwerror;
extern SqLibAPI_throwobject SqLib_throwobject;
extern SqLibAPI_reseterror SqLib_reseterror;
@ -670,6 +676,7 @@ extern "C" {
#define sq_getclosureinfo SqLib_getclosureinfo
#define sq_getclosurename SqLib_getclosurename
#define sq_setnativeclosurename SqLib_setnativeclosurename
#define sq_getnativeclosurepointer SqLib_getnativeclosurepointer
#define sq_setinstanceup SqLib_setinstanceup
#define sq_getinstanceup SqLib_getinstanceup
#define sq_setclassudsize SqLib_setclassudsize
@ -719,6 +726,7 @@ extern "C" {
#define sq_getlocal SqLib_getlocal
#define sq_getcallee SqLib_getcallee
#define sq_getfreevariable SqLib_getfreevariable
#define sq_getonefreevariable SqLib_getonefreevariable
#define sq_throwerror SqLib_throwerror
#define sq_throwobject SqLib_throwobject
#define sq_reseterror SqLib_reseterror

View File

@ -293,6 +293,7 @@ SqLibAPI_getfunctioninfo SqLib_getfunctioninfo
SqLibAPI_getclosureinfo SqLib_getclosureinfo = NULL;
SqLibAPI_getclosurename SqLib_getclosurename = NULL;
SqLibAPI_setnativeclosurename SqLib_setnativeclosurename = NULL;
SqLibAPI_getnativeclosurepointer SqLib_getnativeclosurepointer = NULL;
SqLibAPI_setinstanceup SqLib_setinstanceup = NULL;
SqLibAPI_getinstanceup SqLib_getinstanceup = NULL;
SqLibAPI_setclassudsize SqLib_setclassudsize = NULL;
@ -342,6 +343,7 @@ SqLibAPI_resume SqLib_resume
SqLibAPI_getlocal SqLib_getlocal = NULL;
SqLibAPI_getcallee SqLib_getcallee = NULL;
SqLibAPI_getfreevariable SqLib_getfreevariable = NULL;
SqLibAPI_getonefreevariable SqLib_getonefreevariable = NULL;
SqLibAPI_throwerror SqLib_throwerror = NULL;
SqLibAPI_throwobject SqLib_throwobject = NULL;
SqLibAPI_reseterror SqLib_reseterror = NULL;
@ -485,6 +487,7 @@ uint8_t sqlib_api_expand(HSQLIBAPI sqlibapi)
SqLib_getclosureinfo = sqlibapi->getclosureinfo;
SqLib_getclosurename = sqlibapi->getclosurename;
SqLib_setnativeclosurename = sqlibapi->setnativeclosurename;
SqLib_getnativeclosurepointer = sqlibapi->getnativeclosurepointer;
SqLib_setinstanceup = sqlibapi->setinstanceup;
SqLib_getinstanceup = sqlibapi->getinstanceup;
SqLib_setclassudsize = sqlibapi->setclassudsize;
@ -534,6 +537,7 @@ uint8_t sqlib_api_expand(HSQLIBAPI sqlibapi)
SqLib_getlocal = sqlibapi->getlocal;
SqLib_getcallee = sqlibapi->getcallee;
SqLib_getfreevariable = sqlibapi->getfreevariable;
SqLib_getonefreevariable = sqlibapi->getonefreevariable;
SqLib_throwerror = sqlibapi->throwerror;
SqLib_throwobject = sqlibapi->throwobject;
SqLib_reseterror = sqlibapi->reseterror;
@ -676,6 +680,7 @@ void sqlib_api_collapse()
SqLib_getclosureinfo = NULL;
SqLib_getclosurename = NULL;
SqLib_setnativeclosurename = NULL;
SqLib_getnativeclosurepointer = NULL;
SqLib_setinstanceup = NULL;
SqLib_getinstanceup = NULL;
SqLib_setclassudsize = NULL;
@ -725,6 +730,7 @@ void sqlib_api_collapse()
SqLib_getlocal = NULL;
SqLib_getcallee = NULL;
SqLib_getfreevariable = NULL;
SqLib_getonefreevariable = NULL;
SqLib_throwerror = NULL;
SqLib_throwobject = NULL;
SqLib_reseterror = NULL;

View File

@ -802,6 +802,7 @@ static int32_t SqExport_PopulateSquirrelAPI(HSQLIBAPI api, size_t size)
api->getclosureinfo = sq_getclosureinfo;
api->getclosurename = sq_getclosurename;
api->setnativeclosurename = sq_setnativeclosurename;
api->getnativeclosurepointer = sq_getnativeclosurepointer;
api->setinstanceup = sq_setinstanceup;
api->getinstanceup = sq_getinstanceup;
api->setclassudsize = sq_setclassudsize;
@ -851,6 +852,7 @@ static int32_t SqExport_PopulateSquirrelAPI(HSQLIBAPI api, size_t size)
api->getlocal = sq_getlocal;
api->getcallee = sq_getcallee;
api->getfreevariable = sq_getfreevariable;
api->getonefreevariable = sq_getonefreevariable;
api->throwerror = sq_throwerror;
api->throwobject = sq_throwobject;
api->reseterror = sq_reseterror;