diff options
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 |