Added Sqrat::ClassType::IsValidInstance static method:
Added Sqrat::ClassType::IsValidInstance static method:
It works, i think it's safe to say that closing this merge request is the best approach, because this might break too many things.
I'll try this approach and let you know about the results.
About that: ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Called by Sqrat::PushVar to put a class object on the stack /// /// \param vm Target VM /// \param value Value to push on to the VM's stack /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// static void push(HSQUIRRELVM vm, const T& val) { if (ClassType<T>::hasClassData(vm)) ClassType<T>::PushInstanceCopy(vm,...
About that: ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Called by Sqrat::PushVar to put a class object on the stack /// /// \param vm Target VM /// \param value Value to push on to the VM's stack /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// static void push(HSQUIRRELVM vm, const T& val) { if (ClassType<T>::hasClassData(vm)) ClassType<T>::PushInstanceCopy(vm,...
Replaced Sqrat::PushVar to Sqrat::PushVarR in Sqrat::Function Evaluate/Execute methods.