diff options
author | Max Horn | 2011-06-06 17:09:59 +0200 |
---|---|---|
committer | Max Horn | 2011-06-06 17:10:03 +0200 |
commit | 0403cfc060a678de21e4bba61683f1ebc374c1a2 (patch) | |
tree | 9d64b1f876238d4a56d079de70c0dfa9f08f70fc /common | |
parent | 0a2fb9a465fe371daabf2a475fc20c5a870887c6 (diff) | |
download | scummvm-rg350-0403cfc060a678de21e4bba61683f1ebc374c1a2.tar.gz scummvm-rg350-0403cfc060a678de21e4bba61683f1ebc374c1a2.tar.bz2 scummvm-rg350-0403cfc060a678de21e4bba61683f1ebc374c1a2.zip |
COMMON: Attempt to make 'forbidden symbol' error more helpful
Diffstat (limited to 'common')
-rw-r--r-- | common/forbidden.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/forbidden.h b/common/forbidden.h index 995442d5fc..9cba19cf5e 100644 --- a/common/forbidden.h +++ b/common/forbidden.h @@ -34,6 +34,9 @@ * Backend files may #define FORBIDDEN_SYMBOL_ALLOW_ALL if they * have to access functions like fopen, fread etc. * Regular code, esp. code in engines/, should never do that. + * To ease transition, though, we allow re-enabling selected symbols + * in frontend code. However, this should only be used as a temporary + * measure. Especially new code should avoid this at all costs. */ #ifndef FORBIDDEN_SYMBOL_ALLOW_ALL @@ -51,7 +54,7 @@ * the compiler will hopefully print along with its own error message), * we try to make clear what is causing the error. */ -#define FORBIDDEN_SYMBOL_REPLACEMENT FORBIDDEN SYMBOL !%* +#define FORBIDDEN_SYMBOL_REPLACEMENT FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%* #ifndef FORBIDDEN_SYMBOL_EXCEPTION_printf |