| 1199 | |
| 1200 | |
| 1201 | LUA_API int lua_error(lua_State *L) { |
| 1202 | lua_lock(L); |
| 1203 | api_checknelems(L, 1); |
| 1204 | auto msg = (lua_gettop(L) > 0 && lua_isstring(L, -1)) ? lua_tostring(L, -1) : nullptr; |
| 1205 | luaG_errormsg(L, msg); |
| 1206 | /* code unreachable; will unlock when control actually leaves the kernel */ |
| 1207 | return 0; /* to avoid warnings */ |
| 1208 | } |
| 1209 | |
| 1210 | |
| 1211 | LUA_API int lua_next(lua_State *L, int idx) { |
no test coverage detected