diff --git a/doc/source/reference/api/object_creation_and_handling.rst b/doc/source/reference/api/object_creation_and_handling.rst index 85daf1b..fe2654c 100644 --- a/doc/source/reference/api/object_creation_and_handling.rst +++ b/doc/source/reference/api/object_creation_and_handling.rst @@ -177,7 +177,7 @@ gets the value of the integer at the idx position in the stack. :param SQInteger idx: an index in the stack pointing to the class :param HSQMEMBERHANDLE* handle: a pointer to the variable that will store the handle :returns: a SQRESULT - :remarks: This method works only with classes and instances. A handle retrieved through a class can be later used to set or get values from one of the class instances and vice-versa. Handles retrieved from base classes are still valid in derived classes and respect inheritance rules. + :remarks: This method works only with classes. A handle retrieved through a class can be later used to set or get values from one of the class instances. Handles retrieved from base classes are still valid in derived classes and respect inheritance rules. pops a value from the stack and uses it as index to fetch the handle of a class member. The handle can be later used to set or get the member value using sq_getbyhandle(),sq_setbyhandle(). @@ -455,7 +455,7 @@ pushes a null value into the stack :param HSQUIRRELVM v: the target VM :param const SQChar * s: pointer to the string that has to be pushed - :param SQInteger len: lenght of the string pointed by s + :param SQInteger len: length of the string pointed by s :remarks: if the parameter len is less than 0 the VM will calculate the length using strlen(s) pushes a string in the stack diff --git a/doc/source/reference/api/stack_operations.rst b/doc/source/reference/api/stack_operations.rst index 99153cd..0fdaeb4 100644 --- a/doc/source/reference/api/stack_operations.rst +++ b/doc/source/reference/api/stack_operations.rst @@ -13,7 +13,7 @@ Stack Operations :returns: == 0 if obj1==obj2 :returns: < 0 if obj1_top + nsize) > v->_stack.size()) { if(v->_nmetamethodscall) { - return sq_throwerror(v,_SC("cannot resize stack while in a metamethod")); + return sq_throwerror(v,_SC("cannot resize stack while in a metamethod")); } v->_stack.resize(v->_stack.size() + ((v->_top + nsize) - v->_stack.size())); } diff --git a/squirrel/sqvm.cpp b/squirrel/sqvm.cpp index 455f92b..f1addd1 100644 --- a/squirrel/sqvm.cpp +++ b/squirrel/sqvm.cpp @@ -1632,7 +1632,7 @@ bool SQVM::EnterFrame(SQInteger newbase, SQInteger newtop, bool tailcall) _top = newtop; if(newtop + MIN_STACK_OVERHEAD > (SQInteger)_stack.size()) { if(_nmetamethodscall) { - Raise_Error(_SC("stack overflow, cannot resize stack while in a metamethod")); + Raise_Error(_SC("stack overflow, cannot resize stack while in a metamethod")); return false; } _stack.resize(newtop + (MIN_STACK_OVERHEAD << 2));