diff options
Diffstat (limited to 'source/core/StarLua.hpp')
-rw-r--r-- | source/core/StarLua.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/core/StarLua.hpp b/source/core/StarLua.hpp index 2fe275d..09e81e6 100644 --- a/source/core/StarLua.hpp +++ b/source/core/StarLua.hpp @@ -519,6 +519,9 @@ public: ByteArray compile(char const* contents, size_t size, char const* name = nullptr); ByteArray compile(String const& contents, String const& name = String()); ByteArray compile(ByteArray const& contents, String const& name = String()); + + // Returns the debug info of the state. + lua_Debug const& debugInfo(int level = 1, const char* what = "nSlu"); // Generic from/to lua conversion, calls template specialization of // LuaConverter for actual conversion. @@ -734,6 +737,7 @@ private: unsigned m_recursionLimit; int m_nullTerminated; HashMap<tuple<String, unsigned>, shared_ptr<LuaProfileEntry>> m_profileEntries; + lua_Debug m_debugInfo; }; // Built in conversions |