sq_newclass

Squirrel 2.2

sq_newclass

SQRESULT sq_newclass(HSQUIRRELVM v, SQBool hasbase);

creates a new class object. If the parameter 'hasbase' is different than 0, the function pops a class from the stack and inherits the new created class from it.

parameters:
HSQUIRRELVM v

the target VM

SQBool hasbase

if the parameter is true the function expects a base class on top of the stack.

return:

a SQRESULT