| 331 | |
| 332 | |
| 333 | LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) { |
| 334 | /* keep some extra space to run error routines, if needed */ |
| 335 | const int extra = LUA_MINSTACK; |
| 336 | if (!lua_checkstack(L, space + extra)) { |
| 337 | if (msg) |
| 338 | luaL_error(L, "stack overflow (%s)", msg); |
| 339 | else |
| 340 | luaL_error(L, "stack overflow"); |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | |
| 345 | LUALIB_API void luaL_checktype (lua_State *L, int narg, int t) { |
no test coverage detected