mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Add ScriptDeprecated macros
This commit is contained in:
parent
c2291e92c4
commit
a51c250a31
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue