Updated SqRat to Squirrel 3.2 version #2
This commit is contained in:
@@ -1369,8 +1369,8 @@ public:
|
|||||||
sq_pushobject(vm, env);
|
sq_pushobject(vm, env);
|
||||||
|
|
||||||
#if !defined (SCRAT_NO_ERROR_CHECKING)
|
#if !defined (SCRAT_NO_ERROR_CHECKING)
|
||||||
SQUnsignedInteger nparams;
|
SQInteger nparams;
|
||||||
SQUnsignedInteger nfreevars;
|
SQInteger nfreevars;
|
||||||
if (obj._type != OT_NATIVECLOSURE &&
|
if (obj._type != OT_NATIVECLOSURE &&
|
||||||
SQ_SUCCEEDED(sq_getclosureinfo(vm, -2, &nparams, &nfreevars)) && (nparams != 3)) {
|
SQ_SUCCEEDED(sq_getclosureinfo(vm, -2, &nparams, &nfreevars)) && (nparams != 3)) {
|
||||||
sq_pop(vm, 2);
|
sq_pop(vm, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user