mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Pass a errfunc to lua_pcall to get a traceback
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user