From 10a0e290ac07524dc129cc2b227b0f9e95df0f8e Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 16 Apr 2012 09:39:52 -0500 Subject: first commit --- LuaDebugger.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 LuaDebugger.h (limited to 'LuaDebugger.h') diff --git a/LuaDebugger.h b/LuaDebugger.h new file mode 100644 index 0000000..a4c764e --- /dev/null +++ b/LuaDebugger.h @@ -0,0 +1,47 @@ +// --------------------------------------------------------------------------- +// FILE NAME : LuaDebugger.h +// --------------------------------------------------------------------------- +// DESCRIPTION : +// +// Debugging interface +// +// --------------------------------------------------------------------------- +// VERSION : 1.00 +// DATE : 1-Sep-2005 +// AUTHOR : Richard Shephard +// --------------------------------------------------------------------------- +// LIBRARY INCLUDE FILES +#ifndef __LUA_DEBUGGER_H__ +#define __LUA_DEBUGGER_H__ + +#include "luainc.h" +#include "luavirtualmachine.h" + +enum +{ + DBG_MASK_CALL = LUA_MASKCALL, + DBG_MASK_RET = LUA_MASKRET, + DBG_MASK_LINE = LUA_MASKLINE, + DBG_MASK_COUNT = LUA_MASKCOUNT +}; + +class CLuaVirtualMachine; + +class CLuaDebugger +{ +public: + CLuaDebugger (CLuaVirtualMachine& vm); + virtual ~CLuaDebugger (void); + + void SetHooksFlag (int iMask); + void SetCount (int iCount) { m_iCountMask = iCount; } + + void ErrorRun (int iErrorCode); + +protected: + int m_iCountMask; + CLuaVirtualMachine& m_vm; +}; + + +#endif // __LUA_DEBUGGER_H__ \ No newline at end of file -- cgit