sgs_Create(Lite)ClassFrom [function]
template< class T > T* sgs_CreateClassFrom( sgs_Context* C, sgs_Variable* out, T* inst )
template< class T > T* sgs_CreateLiteClassFrom( sgs_Context* C, sgs_Variable* out, const T* inst )
Create a new instance by copying inst
.
- If
out
is specified, that variable receives the class, otherwise it is pushed on the stack.