| 348 | |
| 349 | |
| 350 | LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) { |
| 351 | /* keep some extra space to run error routines, if needed */ |
| 352 | const int extra = LUA_MINSTACK; |
| 353 | if (!lua_checkstack(L, space + extra)) { |
| 354 | if (msg) |
| 355 | luaL_error(L, "stack overflow (%s)", msg); |
| 356 | else |
| 357 | luaL_error(L, "stack overflow"); |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | |
| 362 | LUALIB_API void luaL_checktype (lua_State *L, int arg, int t) { |
no test coverage detected