ScummVM API documentation
debug.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * Additional copyright for this file:
8 * Copyright (C) 1999-2000 Revolution Software Ltd.
9 * This code is based on source code created by Revolution Software,
10 * used with permission.
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27#ifndef ICB_D_DEBUG
28#define ICB_D_DEBUG
29
30#include "engines/icb/p4_generic.h"
31#include "engines/icb/common/px_string.h"
32#include "engines/icb/common/px_array.h"
33#include "engines/icb/debug_pc.h"
34
35namespace ICB {
36
37extern bool8 terminate_debugging;
38
39// This flag indicates whether or not the debug simulated feature is activated or not.
40extern bool8 debug_auto_save;
41
42// And this controls how frequently the autosave gets done.
43#define DEBUG_AUTO_SAVE_SKIP_CYCLES 10
44
45#define EXCEPTION_LOG "exception_log.txt"
46
47#define PXTRY
48#define PXCATCH if (0) {
49#define PXENDCATCH }
50
51// headup switch stub mode
52void Headup_debug_switcher();
53void Reset_headup_switcher();
54
55} // End of namespace ICB
56
57#endif // #ifndef D_DEBUG