mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-21 20:27:13 +01:00
Allow a dummy StackStrF reference to be retrieved.
This commit is contained in:
parent
58acfb9857
commit
5ef96b943b
@ -108,6 +108,11 @@ SQRESULT SqThrowErrorF(HSQUIRRELVM vm, CCStr str, ...);
|
|||||||
*/
|
*/
|
||||||
bool SToB(CSStr str);
|
bool SToB(CSStr str);
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------------------------------------
|
||||||
|
* Retrieve a reference to a dummy StackStrF instance.
|
||||||
|
*/
|
||||||
|
StackStrF & DummyStackStrF();
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* Retrieve a reference to a null script object.
|
* Retrieve a reference to a null script object.
|
||||||
*/
|
*/
|
||||||
|
@ -244,6 +244,14 @@ bool SToB(CSStr str)
|
|||||||
std::strcmp(buffer, "on") == 0 || std::strcmp(buffer, "1") == 0) ? true : false;
|
std::strcmp(buffer, "on") == 0 || std::strcmp(buffer, "1") == 0) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
StackStrF & DummyStackStrF()
|
||||||
|
{
|
||||||
|
static StackStrF s;
|
||||||
|
s.Release();
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
Object & NullObject()
|
Object & NullObject()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user