diff options
| author | Alexander Gavrilov | 2012-02-11 16:27:12 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-02-11 16:27:12 +0400 |
| commit | f469fab1e6e419ff26655bc3fe9868653dc0f0f0 (patch) | |
| tree | 0fee7b715fc966bfdd897d0f45a64b1c2b431cd4 /library/DataDefs.cpp | |
| parent | 952f621ee272f321939ac8161b9f566496593e2a (diff) | |
| download | dfhack-f469fab1e6e419ff26655bc3fe9868653dc0f0f0.tar.gz dfhack-f469fab1e6e419ff26655bc3fe9868653dc0f0f0.tar.bz2 dfhack-f469fab1e6e419ff26655bc3fe9868653dc0f0f0.tar.xz | |
Use globals defined by the latest codegen.
Diffstat (limited to 'library/DataDefs.cpp')
| -rw-r--r-- | library/DataDefs.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/library/DataDefs.cpp b/library/DataDefs.cpp index cd8a8ed7..d328d7a1 100644 --- a/library/DataDefs.cpp +++ b/library/DataDefs.cpp @@ -206,22 +206,3 @@ int DFHack::findBitfieldField(const std::string &name, int size, const bitfield_ return -1; } - -#define SIMPLE_GLOBAL(name,tname) \ - tname *df::global::name = NULL; -#define GLOBAL(name,tname) SIMPLE_GLOBAL(name,df::tname) -DF_KNOWN_GLOBALS -#undef GLOBAL -#undef SIMPLE_GLOBAL - -void DFHack::InitDataDefGlobals(Core *core) { - OffsetGroup *global_table = core->vinfo->getGroup("global"); - void * tmp; - -#define SIMPLE_GLOBAL(name,tname) \ - if (global_table->getSafeAddress(#name,tmp)) df::global::name = (tname*)tmp; -#define GLOBAL(name,tname) SIMPLE_GLOBAL(name,df::tname) -DF_KNOWN_GLOBALS -#undef GLOBAL -#undef SIMPLE_GLOBAL -} |
