summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-06 21:29:51 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-06 21:29:51 -0500
commit5d7a038cea2cdb57df1354e8e9cbc57931cd4170 (patch)
tree0b29a4293c3cedf6e9db28441db1e24d4e1c23aa /include/config.h
parent38f3f5cc552be4f0a9211db384bd8cf50505b860 (diff)
add NDEBUG define
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 162af3143..6619cfa9a 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1,6 +1,19 @@
#ifndef GUARD_CONFIG_H
#define GUARD_CONFIG_H
+// In the Generation 3 games, Asserts were used in various debug builds.
+// Ruby/Sapphire and Emerald do not have these asserts while Fire Red
+// still has them in the ROM. This is because the developers forgot
+// to define NOAGBPRN before release, which is actually supposed to be
+// NDEBUG, however this has been changed as Ruby's actual debug build
+// does not use the AGBPrint features.
+// #define NDEBUG
+
+// Fire Red likely forgot to define NDEBUG/NOAGBPRN before release, leading
+// to the inclusion of asserts in the retail ROM. Don't try to re-enable this yet
+// since not all baseroms and pointers have been dumped yet and will result in
+// a broken ROM.
+
#define ENGLISH
#ifdef ENGLISH