mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-01-20 22:24:38 +01:00
Make sure that the free variable containing the pointer of the registered native closures is taken into account when registering functions with formatting support that take no extra parameters other than the formatting string and trailing variable arguments.
This commit is contained in:
@@ -2403,7 +2403,7 @@ public:
|
||||
|
||||
SQTRY()
|
||||
|
||||
const StackStrF fmt(vm, 2, true);
|
||||
const StackStrF fmt(vm, 2, true, sq_gettop(vm) == 2);
|
||||
// Validate the format
|
||||
if (SQ_FAILED(fmt.mRes)) {
|
||||
return fmt.mRes;
|
||||
@@ -2822,7 +2822,7 @@ public:
|
||||
|
||||
SQTRY()
|
||||
|
||||
const StackStrF fmt(vm, 2, true);
|
||||
const StackStrF fmt(vm, 2, true, sq_gettop(vm) == 2);
|
||||
// Validate the format
|
||||
if (SQ_FAILED(fmt.mRes)) {
|
||||
return fmt.mRes;
|
||||
@@ -3241,7 +3241,7 @@ public:
|
||||
|
||||
SQTRY()
|
||||
|
||||
const StackStrF fmt(vm, 2, true);
|
||||
const StackStrF fmt(vm, 2, true, sq_gettop(vm) == 2);
|
||||
// Validate the format
|
||||
if (SQ_FAILED(fmt.mRes)) {
|
||||
return fmt.mRes;
|
||||
|
||||
Reference in New Issue
Block a user