MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / PushErrorHandler

Function PushErrorHandler

zone/lua_parser.cpp:210–215  ·  view source on GitHub ↗

use debug.traceback() for errors (luaL_traceback is only in luajit and lua 5.2+)

Source from the content-addressed store, hash-verified

208
209// use debug.traceback() for errors (luaL_traceback is only in luajit and lua 5.2+)
210static void PushErrorHandler(lua_State* L)
211{
212 lua_getglobal(L, "debug");
213 lua_getfield(L, -1, "traceback");
214 lua_remove(L, -2);
215}
216
217LuaParser::LuaParser() {
218 for (int i = 0; i < _LargestEventID; ++i) {

Callers 9

_EventNPCMethod · 0.85
_EventPlayerMethod · 0.85
_EventItemMethod · 0.85
_EventSpellMethod · 0.85
_EventEncounterMethod · 0.85
LoadScriptMethod · 0.85
_EventBotMethod · 0.85
_EventMercMethod · 0.85
_EventZoneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected