Add ScriptDeprecated macros

This commit is contained in:
smallmodel 2024-11-08 19:33:15 +01:00
parent c2291e92c4
commit a51c250a31
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -48,4 +48,6 @@ public:
void Error(const char *format, ...);
#define ScriptDeprecated(function) throw ScriptException(function ": DEPRECATED. DON'T USE IT ANYMORE")
#define ScriptDeprecatedAltMethod(alternative_name) gi.DPrintf("WARNING: " __FUNCTION__ ": is deprecated and has been superseded by the " alternative_name " method")
#define ScriptDeprecatedAltVariable(alternative_name) gi.DPrintf("WARNING: " __FUNCTION__ ": is deprecated and has been superseded by the " alternative_name " variable")
#define ScriptError throw ScriptException