| 180 | } |
| 181 | |
| 182 | void LuaState::raiseError(const char *errorMessage) |
| 183 | { |
| 184 | luaL_where(L, 1); |
| 185 | if (errorMessage) { |
| 186 | lua_pushstring(L, errorMessage); |
| 187 | } else { |
| 188 | lua_insert(L, -2); |
| 189 | } |
| 190 | |
| 191 | lua_concat(L, 2); |
| 192 | lua_error(L); |
| 193 | } |
nothing calls this directly
no outgoing calls
no test coverage detected