| 291 | |
| 292 | |
| 293 | LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) { |
| 294 | /* keep some extra space to run error routines, if needed */ |
| 295 | const int extra = LUA_MINSTACK; |
| 296 | if (!lua_checkstack(L, space + extra)) { |
| 297 | if (msg) |
| 298 | luaL_error(L, "stack overflow (%s)", msg); |
| 299 | else |
| 300 | luaL_error(L, "stack overflow"); |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | |
| 305 | LUALIB_API void luaL_checktype (lua_State *L, int narg, int t) { |
no test coverage detected