mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 07:07: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:
@ -1024,16 +1024,16 @@ static SQInteger SqNameFilterCheck(HSQUIRRELVM vm)
|
||||
return sq_throwerror(vm, "Missing name string");
|
||||
}
|
||||
// Attempt to generate the string value
|
||||
StackStrF filter(vm, 2, false);
|
||||
StackStrF filter(vm, 2);
|
||||
// Have we failed to retrieve the string?
|
||||
if (SQ_FAILED(filter.mRes))
|
||||
if (SQ_FAILED(filter.Proc(false)))
|
||||
{
|
||||
return filter.mRes; // Propagate the error!
|
||||
}
|
||||
// Attempt to generate the string value
|
||||
StackStrF name(vm, 3, true);
|
||||
StackStrF name(vm, 3);
|
||||
// Have we failed to retrieve the string?
|
||||
if (SQ_FAILED(name.mRes))
|
||||
if (SQ_FAILED(name.Proc(true)))
|
||||
{
|
||||
return name.mRes; // Propagate the error!
|
||||
}
|
||||
@ -1058,16 +1058,16 @@ static SQInteger SqNameFilterCheckInsensitive(HSQUIRRELVM vm)
|
||||
return sq_throwerror(vm, "Missing name string");
|
||||
}
|
||||
// Attempt to generate the string value
|
||||
StackStrF filter(vm, 2, false);
|
||||
StackStrF filter(vm, 2);
|
||||
// Have we failed to retrieve the string?
|
||||
if (SQ_FAILED(filter.mRes))
|
||||
if (SQ_FAILED(filter.Proc(false)))
|
||||
{
|
||||
return filter.mRes; // Propagate the error!
|
||||
}
|
||||
// Attempt to generate the string value
|
||||
StackStrF name(vm, 3, true);
|
||||
StackStrF name(vm, 3);
|
||||
// Have we failed to retrieve the string?
|
||||
if (SQ_FAILED(name.mRes))
|
||||
if (SQ_FAILED(name.Proc(true)))
|
||||
{
|
||||
return name.mRes; // Propagate the error!
|
||||
}
|
||||
|
Reference in New Issue
Block a user