mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-08-19 06:07:12 +02:00
Improve the string retrieval from the stack to make use of the new sq_getstringandsize API function and also obtain the size everytime.
Add two new helper functions to retrieve the string representation of a certain script type or object.
This commit is contained in:
@@ -1399,6 +1399,16 @@ struct StackStrF
|
||||
StackStrF & operator = (StackStrF && o) = delete;
|
||||
};
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Netrieve the string representation of a certain type.
|
||||
*/
|
||||
CSStr SqTypeName(SQObjectType type);
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Netrieve the string representation of a certain type from a value on the stack.
|
||||
*/
|
||||
String SqTypeName(HSQUIRRELVM vm, SQInteger idx);
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Create a script object from the specified value on the default VM.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user