mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 15:17:13 +02:00
Fix assertion functions.
This commit is contained in:
1
vendor/Squirrel/include/squirrelex.h
vendored
1
vendor/Squirrel/include/squirrelex.h
vendored
@ -16,6 +16,7 @@ SQUIRREL_API SQRESULT sq_pushstringf(HSQUIRRELVM v,const SQChar *s,...);
|
||||
SQUIRREL_API SQRESULT sq_vpushstringf(HSQUIRRELVM v,const SQChar *s,va_list l);
|
||||
SQUIRREL_API SQRESULT sq_getnativeclosurepointer(HSQUIRRELVM v,SQInteger idx,SQFUNCTION *f);
|
||||
SQUIRREL_API SQRESULT sq_arrayreserve(HSQUIRRELVM v,SQInteger idx,SQInteger newcap);
|
||||
SQUIRREL_API SQInteger sq_cmpr(HSQUIRRELVM v);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /*extern "C"*/
|
||||
|
7
vendor/Squirrel/sqapiex.cpp
vendored
7
vendor/Squirrel/sqapiex.cpp
vendored
@ -119,3 +119,10 @@ SQRESULT sq_arrayreserve(HSQUIRRELVM v,SQInteger idx,SQInteger newcap)
|
||||
}
|
||||
return sq_throwerror(v,_SC("negative capacity"));
|
||||
}
|
||||
|
||||
SQInteger sq_cmpr(HSQUIRRELVM v)
|
||||
{
|
||||
SQInteger res;
|
||||
v->ObjCmp(stack_get(v, -2), stack_get(v, -1),res);
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user