| 69 | |
| 70 | |
| 71 | static int luaB_error (lua_State *L) { |
| 72 | int level = luaL_optint(L, 2, 1); |
| 73 | lua_settop(L, 1); |
| 74 | if (lua_isstring(L, 1) && level > 0) { /* add extra information? */ |
| 75 | luaL_where(L, level); |
| 76 | lua_pushvalue(L, 1); |
| 77 | lua_concat(L, 2); |
| 78 | } |
| 79 | return lua_error(L); |
| 80 | } |
| 81 | |
| 82 | |
| 83 | static int luaB_getmetatable (lua_State *L) { |
nothing calls this directly
no test coverage detected