mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: Reduce lua stack usage
This commit is contained in:
parent
80bf2d6192
commit
6e7367b86f
|
@ -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
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue