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