Fix errors in documentation source code

This commit is contained in:
lindqva 2017-11-16 16:05:04 +01:00
parent 7fe2a71c13
commit 5c737b040a

View File

@ -11,11 +11,11 @@ The object can be also re-pushed in the VM stack using sq_pushobject().::
HSQOBJECT obj; HSQOBJECT obj;
sq_resetobject(v,&obj) //initialize the handle sq_resetobject(&obj) //initialize the handle
sq_getstackobj(v,-2,&obj); //retrieve an object handle from the pos -2 sq_getstackobj(v,-2,&obj); //retrieve an object handle from the pos -2
sq_addref(v,&obj); //adds a reference to the object sq_addref(v,&obj); //adds a reference to the object
... //do stuff ... //do stuff
sq_pushobject(v,&obj); //push the object in the stack sq_pushobject(v,obj); //push the object in the stack
sq_release(v,&obj); //relese the object sq_release(v,&obj); //relese the object