-
Notifications
You must be signed in to change notification settings - Fork 11
/
compile_cfg.h
110 lines (97 loc) · 2.66 KB
/
compile_cfg.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*
* ff7_opengl - Complete OpenGL replacement of the Direct3D renderer used in
* the original ports of Final Fantasy VII and Final Fantasy VIII for the PC.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* compile_cfg.h - compile time configuration options
*/
#ifndef _COMPILE_CFG_H_
#define _COMPILE_CFG_H_
/*
* RELEASE
*
* Enables compile time checks to make sure no debugging options have been left
* enabled and removes debug output.
*/
//#define RELEASE
/*
* PRERELEASE
*
* Adds prerelease warning to applog and ingame. Only valid in conjunction with
* RELEASE.
*/
//#define PRERELEASE
/*
* VERSION
*
* Version string used in applog.
*/
#define VERSION "0.8.2b"
/*
* SINGLE_STEP
*
* Forces window mode in original resolution and places the renderer into
* single step mode, in this mode double buffering is disabled and the result
* of each render call is immediately flushed to the screen, allowing you
* to set breakpoints in the rendering process and see exactly what has been
* drawn up to that point.
*/
//#define SINGLE_STEP
/*
* HEAP_DEBUG
*
* Trace and keep count of every allocation made by this program. Number of
* allocations can be seen ingame through the show_stats option.
*/
//#define HEAP_DEBUG
/*
* NO_EXT_HEAP
*
* Reroutes allocations from the game itself to our heap. Can be used with the
* above option to also trace allocations from the game. The game WILL crash on
* exit when this option is enabled. This is normal.
*/
//#define NO_EXT_HEAP
/*
* PROFILE
*
* Enables profiling functions and profiling display through the show_stats
* option. A running total of the time spent between PROFILE_START() and
* PROFILE_END() pairs will be displayed ingame.
*/
//#define PROFILE
// check for invalid combinations of options
#ifdef RELEASE
#ifdef SINGLE_STEP
#error
#endif
#ifdef HEAP_DEBUG
#error
#endif
#ifdef PROFILE
#error
#endif
#else
#ifdef PRERELEASE
#error
#endif
#endif
#ifdef PRERELEASE
#define PRERELEASE_WARNING " PRERELEASE DO NOT DISTRIBUTE"
#else
#define PRERELEASE_WARNING ""
#endif
#endif