Implement several helper functions to create long integer instances.

This commit is contained in:
Sandu Liviu Catalin
2016-06-03 22:16:14 +03:00
parent 279479cddc
commit 125088c9e3
2 changed files with 88 additions and 0 deletions
+20
View File
@@ -1430,6 +1430,26 @@ Object BufferToStrObj(const Buffer & b);
*/
Object BufferToStrObj(const Buffer & b, Uint32 size);
/* ------------------------------------------------------------------------------------------------
* Create a signed long integer object from an integer.
*/
Object MakeSLongObj(Int64 val);
/* ------------------------------------------------------------------------------------------------
* Create a unsigned long integer object from an integer.
*/
Object MakeULongObj(Uint64 val);
/* ------------------------------------------------------------------------------------------------
* Create a signed long integer object from an integer.
*/
Object MakeSLongObj(HSQUIRRELVM vm, Int64 val);
/* ------------------------------------------------------------------------------------------------
* Create a unsigned long integer object from an integer.
*/
Object MakeULongObj(HSQUIRRELVM vm, Uint64 val);
/* ------------------------------------------------------------------------------------------------
* Attempt to pop the value at the specified index on the stack as a native integer.
*/