ardupilot/libraries/AP_Scripting/generator
Thomas Watson 837b17e82e AP_Scripting: more intelligently manage Lua stack
The Lua stack is guaranteed to have at least LUA_MINSTACK (default 20)
slots upon entry to C. Check to see if we might need more than that
minimum and only in that case call the function to check and resize the
stack. In virtually all cases the check can then be optimized away.

Additionally remove the redundant "Out of stack" message. Lua already
says "stack overflow" and a null message is valid.

Saves ~330B.
2024-07-30 09:55:25 +10:00
..
description AP_Scripting: Add I2C transfer bindings 2024-07-30 09:40:10 +10:00
src AP_Scripting: more intelligently manage Lua stack 2024-07-30 09:55:25 +10:00