1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-17 14:27:11 +02:00

Implement a formatted Squirrel error throwing utility.

This commit is contained in:
Sandu Liviu Catalin
2017-06-16 02:23:24 +03:00
parent e8027dcb3d
commit f048950d20
2 changed files with 22 additions and 0 deletions

View File

@ -98,6 +98,11 @@ CSStr ToStrF(CCStr str, ...);
*/
CSStr ToStringF(CCStr str, ...);
/* ------------------------------------------------------------------------------------------------
* Generate a formatted string and throw it as a squirrel exception.
*/
SQRESULT SqThrowErrorF(HSQUIRRELVM vm, CCStr str, ...);
/* ------------------------------------------------------------------------------------------------
* Simple function to check whether the specified string can be considered as a boolean value
*/