Merge pull request #114 from breakin/fix/doc-references_from_c

Fix errors in documentation source code
This commit is contained in:
Alberto Demichelis 2017-11-17 04:19:14 +08:00 committed by GitHub
commit b00cd02629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,11 +11,11 @@ The object can be also re-pushed in the VM stack using sq_pushobject().::
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_addref(v,&obj); //adds a reference to the object
... //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