AP_Scripting: Reduce lua stack usage

This commit is contained in:
Michael du Breuil 2019-07-16 21:25:20 -07:00 committed by Randy Mackay
parent 80bf2d6192
commit 6e7367b86f
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
** maximum number of upvalues in a closure (both C and Lua). (Value
** must fit in a VM register.)
*/
#define MAXUPVAL 255
#define MAXUPVAL 127
/*

View File

@ -31,7 +31,7 @@
/* maximum number of local variables per function (must be smaller
than 250, due to the bytecode format) */
#define MAXVARS 200
#define MAXVARS 100
#define hasmultret(k) ((k) == VCALL || (k) == VVARARG)