1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Improve Script CPP API diagnostics

This commit is contained in:
kwolekr
2015-08-05 00:49:35 -04:00
parent 3183d5a403
commit bcf47bc67c
16 changed files with 129 additions and 107 deletions

View File

@@ -165,9 +165,9 @@ void ScriptApiBase::realityCheck()
}
}
void ScriptApiBase::scriptError()
void ScriptApiBase::scriptError(int result, const char *fxn)
{
throw LuaError(lua_tostring(m_luastack, -1));
script_error(getStack(), result, fxn);
}
void ScriptApiBase::stackDump(std::ostream &o)