1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-15 22:57:12 +02:00

Fix the command system which would fail on recursive command execution.

This commit is contained in:
Sandu Liviu Catalin
2016-06-08 16:26:55 +03:00
parent 410a60cfe5
commit 6489dfdf08
4 changed files with 243 additions and 124 deletions

View File

@ -268,6 +268,14 @@ Function & NullFunction()
return f;
}
// ------------------------------------------------------------------------------------------------
String & NullString()
{
static String s;
s.resize(0);
return s;
}
// ------------------------------------------------------------------------------------------------
CSStr ConvNum< Int8 >::ToStr(Int8 v)
{

View File

@ -118,6 +118,11 @@ Array & NullArray();
*/
Function & NullFunction();
/* ------------------------------------------------------------------------------------------------
* Retrieve a reference to a null string.
*/
String & NullString();
/* ------------------------------------------------------------------------------------------------
* Compute the next power of two for the specified number.
*/