sgs_Create(Lite)Class [function]

template< class T > void sgs_CreateClass( sgs_Context* C, sgs_Variable* out, T* inst )

template< class T > void sgs_CreateLiteClass( sgs_Context* C, sgs_Variable* out, T* inst )

Push a new instance of the class on stack.

This function should not be used with existing instances, as it would make more than one SGScript object responsible for the same data. Use sgs_CreateVar or sgs_Create(Lite)ClassFrom with existing instances.