aboutsummaryrefslogtreecommitdiff
path: root/LuaDebugger.h
blob: a4c764e61edfa87160df5c4958f06ec9a35baf9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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__