This commit is contained in:
Alberto Demichelis
2023-07-28 00:19:36 +02:00
2 changed files with 9 additions and 2 deletions

View File

@ -170,7 +170,7 @@ instead of curly brackets ``{}`` for the attribute declaration to increase reada
This means that all rules that apply to tables apply to attributes.
Attributes can be retrieved through the built-in function ``classobj.getattributes(membername)`` (see <link linkend="builtin">built-in functions</link>).
Attributes can be retrieved through the built-in function ``classobj.getattributes(membername)`` (see :ref:`built-in functions <builtin_functions>`).
and can be modified/added through the built-in function ``classobj.setattributes(membername,val)``.
the following code iterates through the attributes of all Foo members.::

View File

@ -715,7 +715,13 @@ bool SQVM::Execute(SQObjectPtr &closure, SQInteger nargs, SQInteger stackbase,SQ
ci->_root = SQTrue;
}
break;
case ET_RESUME_GENERATOR: _generator(closure)->Resume(this, outres); ci->_root = SQTrue; traps += ci->_etraps; break;
case ET_RESUME_GENERATOR:
if(!_generator(closure)->Resume(this, outres)) {
return false;
}
ci->_root = SQTrue;
traps += ci->_etraps;
break;
case ET_RESUME_VM:
case ET_RESUME_THROW_VM:
traps = _suspended_traps;
@ -1123,6 +1129,7 @@ exception_trap:
return false;
}
assert(0);
return false;
}
bool SQVM::CreateClassInstance(SQClass *theclass, SQObjectPtr &inst, SQObjectPtr &constructor)