1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-20 19:57:12 +01:00

Allow a dummy StackStrF reference to be retrieved.

This commit is contained in:
Sandu Liviu Catalin 2018-10-23 22:28:34 +03:00
parent 58acfb9857
commit 5ef96b943b
2 changed files with 13 additions and 0 deletions

View File

@ -108,6 +108,11 @@ SQRESULT SqThrowErrorF(HSQUIRRELVM vm, CCStr str, ...);
*/
bool SToB(CSStr str);
/* ------------------------------------------------------------------------------------------------
* Retrieve a reference to a dummy StackStrF instance.
*/
StackStrF & DummyStackStrF();
/* ------------------------------------------------------------------------------------------------
* Retrieve a reference to a null script object.
*/

View File

@ -244,6 +244,14 @@ bool SToB(CSStr str)
std::strcmp(buffer, "on") == 0 || std::strcmp(buffer, "1") == 0) ? true : false;
}
// ------------------------------------------------------------------------------------------------
StackStrF & DummyStackStrF()
{
static StackStrF s;
s.Release();
return s;
}
// ------------------------------------------------------------------------------------------------
Object & NullObject()
{