mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-20 17:17:13 +02:00
Massive code reduction in the binding utility by using variadic templates.
Extensive code refactoring surrounding the StackStrF helper to facilitate the new changes. Various other miscellaneous changes and code refactoring to facilitate the new changes.
This commit is contained in:
@ -627,9 +627,9 @@ String SqTypeName(HSQUIRRELVM vm, SQInteger idx)
|
||||
return _SC("unknown");
|
||||
}
|
||||
// Attempt to convert the obtained value to a string
|
||||
StackStrF val(vm, -1, false);
|
||||
StackStrF val(vm, -1);
|
||||
// Did the conversion failed?
|
||||
if (SQ_FAILED(val.mRes))
|
||||
if (SQ_FAILED(val.Proc(false)))
|
||||
{
|
||||
return _SC("unknown");
|
||||
}
|
||||
|
Reference in New Issue
Block a user