Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarLua.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-15 08:03:26 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-15 08:03:26 +1000
commit227e60ca4c927ed9f6b7db5e5c53c45addd1428b (patch)
tree5a8a080c4d60084bfb864252407cd4fc145926a3 /source/core/StarLua.cpp
parented8b22c472b9159550ade374328092d15b575ade (diff)
new object lighting toggle, log non-master entity render/update exceptions
Diffstat (limited to 'source/core/StarLua.cpp')
-rw-r--r--source/core/StarLua.cpp7
1 files changed, 7 insertions, 0 deletions
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);