aboutsummaryrefslogtreecommitdiff
path: root/src/gamedata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamedata.h')
-rw-r--r--src/gamedata.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gamedata.h b/src/gamedata.h
index 7d91373..c14c83c 100644
--- a/src/gamedata.h
+++ b/src/gamedata.h
@@ -17,6 +17,15 @@
#ifndef INC_GAMEDATA_H
#define INC_GAMEDATA_H
+#include "gametype.h"
+
+// this defaults to zero (tentative definition), but gets defined to a value by
+// GAMESPECIFIC() in feature.h. static const int variables get constant-folded
+// even in -O0. so, this lets us short-circuit has_ checks inside features.
+// we also check if a gamedata entry's
+__attribute((unused))
+static const int _gamedata_feattags;
+
// STUPID HACK to avoid pollution if abi.h not already included (only because
// generated gamedata stuff relies on this being defined)
#ifndef NVDTOR