From 227e60ca4c927ed9f6b7db5e5c53c45addd1428b Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 15 Apr 2024 08:03:26 +1000 Subject: new object lighting toggle, log non-master entity render/update exceptions --- source/core/StarLua.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/core/StarLua.cpp') diff --git a/source/core/StarLua.cpp b/source/core/StarLua.cpp index 4499ebc..73955f2 100644 --- a/source/core/StarLua.cpp +++ b/source/core/StarLua.cpp @@ -461,6 +461,13 @@ ByteArray LuaEngine::compile(ByteArray const& contents, String const& name) { return compile(contents.ptr(), contents.size(), name.empty() ? nullptr : name.utf8Ptr()); } +lua_Debug const& LuaEngine::debugInfo(int level, const char* what) { + lua_Debug& debug = m_debugInfo = lua_Debug(); + lua_getstack(m_state, level, &debug); + lua_getinfo(m_state, what, &debug); + return debug; +} + LuaString LuaEngine::createString(String const& str) { lua_checkstack(m_state, 1); -- cgit v1.2.3