diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-12-29 12:06:26 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-12-29 12:06:26 -0500 |
commit | cb83f5255b360d64c32c7e45d11d242e104e62f5 (patch) | |
tree | c6611bf95729c4539f53d514d24847d2945408b9 /sigscript/Global.h | |
parent | 02d571db3ef9fa2cb73203ef3dc46827ee6960cf (diff) | |
download | sigen-sigmod-checks.tar.gz sigen-sigmod-checks.tar.xz sigen-sigmod-checks.zip |
Added macos for overriding values in sigscriptsigmod-checks
Diffstat (limited to 'sigscript/Global.h')
-rw-r--r-- | sigscript/Global.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sigscript/Global.h b/sigscript/Global.h index c8ab9c93..9c60b170 100644 --- a/sigscript/Global.h +++ b/sigscript/Global.h @@ -34,4 +34,15 @@ # define SIGSCRIPT_EXPORT_DEPRECATED KDE_DEPRECATED SIGSCRIPT_EXPORT #endif +#ifdef MAKE_SIGSCRIPT_LIB + +#define ALLOW_OVERRIDE_SO(class, type, variable) \ + if (sigmod()->singlePlayer()) \ + ALLOW_OVERRIDE(class, type, variable) +#define ALLOW_OVERRIDE(class, type, variable) \ + if (hasValueOfType<type>(#variable) && m_##class->variable##Check(valueOfType<type>(#variable))) \ + return valueOfType<type>(#variable) + +#endif + #endif |