diff options
author | Max Horn | 2002-12-16 22:46:17 +0000 |
---|---|---|
committer | Max Horn | 2002-12-16 22:46:17 +0000 |
commit | e6e8468a31d04d0e5136623e5f7463c1579e0981 (patch) | |
tree | 7e2a4d746d0bd0717127ffbaaa8180bd859c9b0a /scumm/debugger.h | |
parent | 99a8e393169182992e4fd0758c6064fbb731beec (diff) | |
download | scummvm-rg350-e6e8468a31d04d0e5136623e5f7463c1579e0981.tar.gz scummvm-rg350-e6e8468a31d04d0e5136623e5f7463c1579e0981.tar.bz2 scummvm-rg350-e6e8468a31d04d0e5136623e5f7463c1579e0981.zip |
indentation fixes; added a constructor (after all the debugger is a global var which is not allocated by new, hence we can't relay on memory being zeroed). And no I am not actually gonna use force against Endy, I just was frustrated :-)
svn-id: r6005
Diffstat (limited to 'scumm/debugger.h')
-rw-r--r-- | scumm/debugger.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/scumm/debugger.h b/scumm/debugger.h index afae964c11..3c80fe4699 100644 --- a/scumm/debugger.h +++ b/scumm/debugger.h @@ -20,8 +20,12 @@ #ifndef DEBUG_H #define DEBUG_H + #define USE_CONSOLE + class Scumm; +class ScummDebugger; + typedef bool (ScummDebugger::*DebugProc)(); enum { @@ -44,21 +48,23 @@ struct DCmd { class ScummDebugger { public: + ScummDebugger(); + void on_frame(); void attach(Scumm *s); protected: Scumm *_s; - int _frame_countdown, _dvar_count, _dcmd_count; - DVar _dvars[255]; - DCmd _dcmds[255]; + int _frame_countdown, _dvar_count, _dcmd_count; + DVar _dvars[256]; + DCmd _dcmds[256]; bool _detach_now; void enter(); - void detach(); + void detach(); - void DVar_Register(char *varname, void *pointer, int type, int optional); - void DCmd_Register(char *cmdname, DebugProc pointer); + void DVar_Register(const char *varname, void *pointer, int type, int optional); + void DCmd_Register(const char *cmdname, DebugProc pointer); bool RunCommand(char *input); // Commands |