diff options
Diffstat (limited to 'engines/adl/adl.h')
-rw-r--r-- | engines/adl/adl.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/engines/adl/adl.h b/engines/adl/adl.h index 42d6667cab..ac5e22c974 100644 --- a/engines/adl/adl.h +++ b/engines/adl/adl.h @@ -23,6 +23,7 @@ #ifndef ADL_ADL_H #define ADL_ADL_H +#include "common/debug-channels.h" #include "common/array.h" #include "common/rect.h" #include "common/str.h" @@ -63,6 +64,7 @@ enum kDebugChannels { #define IDO_ACT_SAVE 0x0f #define IDO_ACT_LOAD 0x10 +#define IDI_CUR_ROOM 0xfc #define IDI_VOID_ROOM 0xfd #define IDI_ANY 0xfe @@ -178,6 +180,32 @@ struct RoomData { Commands commands; }; +// Opcode debugging macros +#define OP_DEBUG_0(F) do { \ + if (DebugMan.isDebugChannelEnabled(kDebugChannelScript) && op_debug(F)) \ + return 0; \ +} while (0) + +#define OP_DEBUG_1(F, P1) do { \ + if (DebugMan.isDebugChannelEnabled(kDebugChannelScript) && op_debug(F, P1)) \ + return 1; \ +} while (0) + +#define OP_DEBUG_2(F, P1, P2) do { \ + if (DebugMan.isDebugChannelEnabled(kDebugChannelScript) && op_debug(F, P1, P2)) \ + return 2; \ +} while (0) + +#define OP_DEBUG_3(F, P1, P2, P3) do { \ + if (DebugMan.isDebugChannelEnabled(kDebugChannelScript) && op_debug(F, P1, P2, P3)) \ + return 3; \ +} while (0) + +#define OP_DEBUG_4(F, P1, P2, P3, P4) do { \ + if (DebugMan.isDebugChannelEnabled(kDebugChannelScript) && op_debug(F, P1, P2, P3, P4)) \ + return 4; \ +} while (0) + class AdlEngine : public Engine { friend class Console; public: |