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

Update sqratLightObj.h

This commit is contained in:
Sandu Liviu Catalin 2021-07-10 14:16:03 +03:00
parent 03cbf5a5e5
commit e86e5d5741

View File

@ -518,4 +518,15 @@ template < typename T > LightObj MakeLightObj(HSQUIRRELVM vm, const T & v)
return Var< LightObj >(vm, -1).value; return Var< LightObj >(vm, -1).value;
} }
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
inline StackStrF::StackStrF(HSQUIRRELVM vm, LightObj & o)
: StackStrF(vm, -1)
{
sq_pushobject(vm, o.mObj);
// Process the object on the stack
Proc(false);
// Restore stack
sq_pop(vm, 1);
}
} }