| 367 | |
| 368 | |
| 369 | LUALIB_API void luaL_checkstack(lua_State *L, int space, const char *msg) { |
| 370 | /* keep some extra space to run error routines, if needed */ |
| 371 | const int extra = LUA_MINSTACK; |
| 372 | if (!lua_checkstack(L, space + extra)) { |
| 373 | if (msg) |
| 374 | luaL_error(L, "stack overflow (%s)", msg); |
| 375 | else |
| 376 | luaL_error(L, "stack overflow"); |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | |
| 381 | LUALIB_API void luaL_checktype(lua_State *L, int arg, int t) { |
no test coverage detected