]> git.r.bdr.sh - rbdr/pico-engine/blob - LuaDebugger.h
a4c764e61edfa87160df5c4958f06ec9a35baf9a
[rbdr/pico-engine] / LuaDebugger.h
1 // ---------------------------------------------------------------------------
2 // FILE NAME : LuaDebugger.h
3 // ---------------------------------------------------------------------------
4 // DESCRIPTION :
5 //
6 // Debugging interface
7 //
8 // ---------------------------------------------------------------------------
9 // VERSION : 1.00
10 // DATE : 1-Sep-2005
11 // AUTHOR : Richard Shephard
12 // ---------------------------------------------------------------------------
13 // LIBRARY INCLUDE FILES
14 #ifndef __LUA_DEBUGGER_H__
15 #define __LUA_DEBUGGER_H__
16
17 #include "luainc.h"
18 #include "luavirtualmachine.h"
19
20 enum
21 {
22 DBG_MASK_CALL = LUA_MASKCALL,
23 DBG_MASK_RET = LUA_MASKRET,
24 DBG_MASK_LINE = LUA_MASKLINE,
25 DBG_MASK_COUNT = LUA_MASKCOUNT
26 };
27
28 class CLuaVirtualMachine;
29
30 class CLuaDebugger
31 {
32 public:
33 CLuaDebugger (CLuaVirtualMachine& vm);
34 virtual ~CLuaDebugger (void);
35
36 void SetHooksFlag (int iMask);
37 void SetCount (int iCount) { m_iCountMask = iCount; }
38
39 void ErrorRun (int iErrorCode);
40
41 protected:
42 int m_iCountMask;
43 CLuaVirtualMachine& m_vm;
44 };
45
46
47 #endif // __LUA_DEBUGGER_H__