1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-20 17:17:13 +02:00

Some changes on user options.

This commit is contained in:
Sandu Liviu Catalin
2020-05-10 12:56:23 +03:00
parent bb74e92fc1
commit 018a2de97b
5 changed files with 27 additions and 14 deletions

@ -298,6 +298,14 @@ String & NullString()
return s;
}
// ------------------------------------------------------------------------------------------------
String & StringRef(const SQChar * str)
{
static String s;
s.assign(str);
return s;
}
// ------------------------------------------------------------------------------------------------
CSStr ConvNum< Int8 >::ToStr(Int8 v)
{

@ -137,6 +137,11 @@ Function & NullFunction();
*/
String & NullString();
/* ------------------------------------------------------------------------------------------------
* Retrieve a reference to a static string with a specific value.
*/
String & StringRef(const SQChar * str);
/* ------------------------------------------------------------------------------------------------
* Compute the next power of two for the specified number.
*/