1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Pass a errfunc to lua_pcall to get a traceback

This commit is contained in:
ShadowNinja 2013-11-05 12:06:15 -05:00
parent 3f519eb729
commit 371b39a09a
19 changed files with 424 additions and 324 deletions

View file

@ -31,6 +31,7 @@ extern "C" {
#include "jthread/jmutex.h"
#include "jthread/jmutexautolock.h"
#include "common/c_types.h"
#include "common/c_internal.h"
#define SCRIPTAPI_LOCK_DEBUG
@ -65,7 +66,7 @@ protected:
{ return m_luastack; }
void realityCheck();
void scriptError(const char *fmt, ...);
void scriptError();
void stackDump(std::ostream &o);
Server* getServer() { return m_server; }