ALL: Mark printf and various other symbols as forbidden
Right now, a few places in the frontend code still use printf and consorts. We mark the affected files with a FIXME for now, and add a dedicated exception for each. To be fixed! Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always enforce a compiler error
This commit is contained in:
parent
58eebff803
commit
59e77ed667
17 changed files with 164 additions and 35 deletions
|
@ -23,6 +23,12 @@
|
|||
*/
|
||||
|
||||
#if defined(UNIX)
|
||||
|
||||
// Re-enable some forbidden symbols to avoid clashes with stat.h and unistd.h.
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_chdir
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_mkdir
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_unlink
|
||||
|
||||
#include "backends/fs/posix/posix-fs-factory.h"
|
||||
#include "backends/fs/posix/posix-fs.cpp"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue