| 103 | |
| 104 | |
| 105 | static int luaB_error (lua_State *L) { |
| 106 | int level = (int)luaL_optinteger(L, 2, 1); |
| 107 | lua_settop(L, 1); |
| 108 | if (lua_type(L, 1) == LUA_TSTRING && level > 0) { |
| 109 | luaL_where(L, level); /* add extra information */ |
| 110 | lua_pushvalue(L, 1); |
| 111 | lua_concat(L, 2); |
| 112 | } |
| 113 | return lua_error(L); |
| 114 | } |
| 115 | |
| 116 | |
| 117 | static int luaB_getmetatable (lua_State *L) { |
no test coverage detected