mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-09 08:04:14 -03:00
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. |
||
---|---|---|
.. | ||
description | ||
src |