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:
parent
03cbf5a5e5
commit
e86e5d5741
@ -518,4 +518,15 @@ template < typename T > LightObj MakeLightObj(HSQUIRRELVM vm, const T & v)
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user