Fix: [Script] Improve type checking of parameters (#13522)

This commit is contained in:
Loïc Guilloux
2025-02-13 13:46:21 +01:00
committed by GitHub
parent dc311d7c38
commit b2c5712319
4 changed files with 46 additions and 14 deletions

View File

@@ -194,7 +194,7 @@ public:
* @note This will only work just after a function-call from within Squirrel
* to your C++ function.
*/
static bool GetRealInstance(HSQUIRRELVM vm, SQUserPointer *ptr) { return SQ_SUCCEEDED(sq_getinstanceup(vm, 1, ptr, nullptr)); }
static SQUserPointer GetRealInstance(HSQUIRRELVM vm, int index, const char *tag);
/**
* Get the Squirrel-instance pointer.