| 79 | |
| 80 | |
| 81 | static int luaB_error (lua_State *L) { |
| 82 | int level = luaL_optint(L, 2, 1); |
| 83 | lua_settop(L, 1); |
| 84 | if (lua_isstring(L, 1) && level > 0) { /* add extra information? */ |
| 85 | luaL_where(L, level); |
| 86 | lua_pushvalue(L, 1); |
| 87 | lua_concat(L, 2); |
| 88 | } |
| 89 | return lua_error(L); |
| 90 | } |
| 91 | |
| 92 | |
| 93 | static int luaB_getmetatable (lua_State *L) { |
nothing calls this directly
no test coverage detected