docs for sq_getstringandssize
This commit is contained in:
parent
0961039dd7
commit
9004743fc4
@ -243,6 +243,21 @@ gets a pointer to the string at the idx position in the stack.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.. _sq_getstringandsize:
|
||||||
|
|
||||||
|
.. c:function:: SQRESULT sq_getstringandsize(HSQUIRRELVM v, SQInteger idx, const SQChar ** c, SQInteger* size)
|
||||||
|
|
||||||
|
:param HSQUIRRELVM v: the target VM
|
||||||
|
:param SQInteger idx: an index in the stack
|
||||||
|
:param const SQChar ** c: a pointer to the pointer that will point to the string
|
||||||
|
:param SQInteger * size: a pointer to a SQInteger which will receive the size of the string
|
||||||
|
:returns: a SQRESULT
|
||||||
|
|
||||||
|
gets a pointer to the string at the idx position in the stack; additionally retrieves its size.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.. _sq_getthread:
|
.. _sq_getthread:
|
||||||
|
|
||||||
.. c:function:: SQRESULT sq_getthread(HSQUIRRELVM v, SQInteger idx, HSQUIRRELVM* v)
|
.. c:function:: SQRESULT sq_getthread(HSQUIRRELVM v, SQInteger idx, HSQUIRRELVM* v)
|
||||||
|
@ -92,6 +92,7 @@ the result can be one of the following values: ::
|
|||||||
The following functions convert a squirrel value in the stack to a C value::
|
The following functions convert a squirrel value in the stack to a C value::
|
||||||
|
|
||||||
SQRESULT sq_getstring(HSQUIRRELVM v,SQInteger idx,const SQChar **c);
|
SQRESULT sq_getstring(HSQUIRRELVM v,SQInteger idx,const SQChar **c);
|
||||||
|
SQRESULT sq_getstringandsize(HSQUIRRELVM v,SQInteger idx,const SQChar **c,SQInteger size);
|
||||||
SQRESULT sq_getinteger(HSQUIRRELVM v,SQInteger idx,SQInteger *i);
|
SQRESULT sq_getinteger(HSQUIRRELVM v,SQInteger idx,SQInteger *i);
|
||||||
SQRESULT sq_getfloat(HSQUIRRELVM v,SQInteger idx,SQFloat *f);
|
SQRESULT sq_getfloat(HSQUIRRELVM v,SQInteger idx,SQFloat *f);
|
||||||
SQRESULT sq_getuserpointer(HSQUIRRELVM v,SQInteger idx,SQUserPointer *p);
|
SQRESULT sq_getuserpointer(HSQUIRRELVM v,SQInteger idx,SQUserPointer *p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user