mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Scripting: Revert "Reduce lua stack usage"
This reverts commit 6e7367b86f.
These reductions reduce the usage of the Lua stack, which is stored in
the heap. This reverts back to the stock Lua values; some complex
scripts may desire extra locals. There is some increased risk of memory
fragmentation and so forth but presumably such scripts are prepared.
The actual C stack depth can be limited by `LUAI_MAXCCALLS`.
This commit is contained in:
committed by
Andrew Tridgell
parent
4572849674
commit
720771a723
@@ -26,7 +26,7 @@
|
||||
** maximum number of upvalues in a closure (both C and Lua). (Value
|
||||
** must fit in a VM register.)
|
||||
*/
|
||||
#define MAXUPVAL 127
|
||||
#define MAXUPVAL 255
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
/* maximum number of local variables per function (must be smaller
|
||||
than 250, due to the bytecode format) */
|
||||
#define MAXVARS 100
|
||||
#define MAXVARS 200
|
||||
|
||||
|
||||
#define hasmultret(k) ((k) == VCALL || (k) == VVARARG)
|
||||
|
||||
Reference in New Issue
Block a user