MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / raiseError

Method raiseError

src/LuaState.cpp:182–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected