mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-13 00:57:11 +02:00
Update sqratLightObj.h
This commit is contained in:
1 parent
c551390999
commit
e8fa9e0259
1 file changed
+9
@@ -88,6 +88,15 @@ struct LightObj {
|
||||
sq_addref(SqVM(), &mObj);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Constructs a LightObj from a string object
|
||||
///
|
||||
/// \param o Squirrel object
|
||||
///
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
explicit LightObj(const string & s) : LightObj(s.c_str(), static_cast< SQInteger >(s.size())) {
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Constructs a LightObj from a Squirrel object at a certain index on the stack
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user