summaryrefslogtreecommitdiff
path: root/library/include/DataDefs.h
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-27 10:43:42 +0400
committerAlexander Gavrilov2012-09-27 10:43:42 +0400
commit164c61b6383d704a9a5cc52ed482e79ede5cd515 (patch)
tree9f257bc1be02d6d5b03cb6bfd67cd4e0e62844bd /library/include/DataDefs.h
parent2e5f3c46201d8450a39b52117dbd4f1544771189 (diff)
downloaddfhack-164c61b6383d704a9a5cc52ed482e79ede5cd515.tar.gz
dfhack-164c61b6383d704a9a5cc52ed482e79ede5cd515.tar.bz2
dfhack-164c61b6383d704a9a5cc52ed482e79ede5cd515.tar.xz
Forbid stuff from bins in siege-engine, if forbid ammo standing order set.
Diffstat (limited to 'library/include/DataDefs.h')
-rw-r--r--library/include/DataDefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/include/DataDefs.h b/library/include/DataDefs.h
index 61d5dec4..0966c7f3 100644
--- a/library/include/DataDefs.h
+++ b/library/include/DataDefs.h
@@ -707,6 +707,9 @@ namespace DFHack {
// Global object pointers
#include "df/global_objects.h"
+#define DF_GLOBAL_VALUE(name,defval) (df::global::name ? *df::global::name : defval)
+#define DF_GLOBAL_FIELD(name,fname,defval) (df::global::name ? df::global::name->fname : defval)
+
// A couple of headers that have to be included at once
#include "df/coord2d.h"
#include "df/coord.h"