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.
Fixed sqrat not being completely updated to squirrel 3.2
Updated sqrat for squirrel 3.2 version
The comment was corrected.
These method(s) are useful when you don't want to add _get & _set just to add raw closures as getter & setter. They can be utilized to make a property that can return multiple data types.
Thise method(s) are useful when you don't want to add _get & _set just to add raw closures as getter & setter. They can be utilized to make a property that can return multiple data types.
.SquirrelProp method for Sqrat::Class
Arguments validation for .SquirrelFunc method in Sqrat::Array & Sqrat::Class
Added possibility to bind temporary cpp object
Now :)
added missing sq_pop, added #undef GetObject
Done
Done.
Similarly, maybe moving Sqrat::Var<std::nullpt_t> would also be good idea to this file? What do you think?
Ok, i'll make some adjustments.
Similarly, maybe moving Sqrat::Var<std::nullpt_t> would also be good idea to this file? What do you think?</std::nullpt_t>
No problem, i'll correct it, one question, maybe it would be more fitting to move the code into sqratTypes.h file?
No problem, i'll correct it, one question, maybe it would be more fitting to move it into sqratTypes.h file?
Added Sqrat::Var<SQUserPointer> support
Fixed possible compiler error in SqratBytecode.h
Arguments validation for .SquirrelFunc method
Fix compile error for gcc
Propably the best name for this function would be: type_of. It kinda breaks the naming rule, but it's the most elegant equivalent that i thought of.
I've discovered a new issue with changes made in this MR. https://sourceforge.net/p/scrat/sqrat/106/ Please, give me some feedback.
HSQAPI and typeof (compile error)
Added missing function in HSQAPI struct
#101 Fix (sq->getfloat)
Missing sq->getfloat pointer assignment in sqratimport.cpp