diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-25 09:18:32 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-25 09:18:32 +0200 |
commit | 24e28d09e64e6c90b0c10e7c6706c27b644007dd (patch) | |
tree | fbc29547836c66ee7b50f1e860e9de5045c7c401 /include | |
parent | 0b538dba5762efbaea2d7e3b7cd42dc16136e4d2 (diff) | |
download | crawler-24e28d09e64e6c90b0c10e7c6706c27b644007dd.tar.gz crawler-24e28d09e64e6c90b0c10e7c6706c27b644007dd.tar.bz2 |
added static dumpers for stack l handle in LuaVM
Diffstat (limited to 'include')
-rwxr-xr-x | include/luaglue/LuaVM.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/luaglue/LuaVM.hpp b/include/luaglue/LuaVM.hpp index 6055fd4..ec27a4f 100755 --- a/include/luaglue/LuaVM.hpp +++ b/include/luaglue/LuaVM.hpp @@ -36,12 +36,16 @@ class LuaVM void initialize( ); int findValue( const std::string &key ); - - void dumpStackElement( lua_State *l, int i, int indent = 0 ); + static void dumpStackElement( lua_State *l, int i, int indent = 0 ); + private: lua_State *m_lua; std::string m_sourceFilename; + + public: + LUAGLUE_DLL_VISIBLE static void dumpStack( lua_State *l ); + }; #endif |