** Check whether stack has enough space to run a simple function (such ** as a finalizer): At least BASIC_STACK_SIZE in the Lua stack and ** 2 slots in the C stack. */
| 226 | ** 2 slots in the C stack. |
| 227 | */ |
| 228 | int luaD_checkminstack (lua_State *L) { |
| 229 | return ((stacksize(L) < MAXSTACK - BASIC_STACK_SIZE) && |
| 230 | (getCcalls(L) < LUAI_MAXCCALLS - 2)); |
| 231 | } |
| 232 | |
| 233 | |
| 234 | /* |
no outgoing calls
no test coverage detected