Logo Search packages:      
Sourcecode: scummvm version File versions  Download package


forbidden.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define fread(a, b, c, d)   FORBIDDEN_SYMBOL_REPLACEMENT
#define fseek(a, b, c)   FORBIDDEN_SYMBOL_REPLACEMENT
#define fwrite(a, b, c, d)   FORBIDDEN_SYMBOL_REPLACEMENT
#define longjmp(a, b)   FORBIDDEN_SYMBOL_REPLACEMENT

Detailed Description

This header file is meant to help ensure that engines and infrastructure code do not make use of certain "forbidden" APIs, such as fopen(), setjmp(), etc. This is achieved by re-defining various symbols to a "garbage" string which then trigers a compiler error.

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.

Definition in file forbidden.h.

Generated by  Doxygen 1.6.0   Back to index