The sq_setparamscheck function, instead of accepting just the SQInteger nparamscheck parameter, now accepts both SQInteger nparamscheckmin and SQInteger nparamscheckmax.
Those define the minimum/maximum for the parameters number check policy. Setting any of them to 0 or negative disables the respective check.
I believe this change makes the parameter check way less restrictive and suitable for more use-cases. For example, it enables support for default arguments.
NOTE: This change makes changes to the API functions sq_setparamscheck and sq_getclosureinfo. I am not sure how Squirrel handles such changes (deprecation mechanic?). Because of this, I understand that this change might not be suitable for upstream.
The
sq_setparamscheck
function, instead of accepting just theSQInteger nparamscheck
parameter, now accepts bothSQInteger nparamscheckmin
andSQInteger nparamscheckmax
.Those define the minimum/maximum for the parameters number check policy. Setting any of them to 0 or negative disables the respective check.
I believe this change makes the parameter check way less restrictive and suitable for more use-cases. For example, it enables support for default arguments.
NOTE: This change makes changes to the API functions
sq_setparamscheck
andsq_getclosureinfo
. I am not sure how Squirrel handles such changes (deprecation mechanic?). Because of this, I understand that this change might not be suitable for upstream.