Allow a dummy StackStrF reference to be retrieved.

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

No files matched your search

+5
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.
*/
+8
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()
{