Logo Search packages:      
Sourcecode: scummvm version File versions

Defines

forbidden.h File Reference

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

Go to the source code of this file.

Defines

#define fclose(a)   FORBIDDEN_SYMBOL_REPLACEMENT
#define feof(a)   FORBIDDEN_SYMBOL_REPLACEMENT
#define fgetc(a)   FORBIDDEN_SYMBOL_REPLACEMENT
#define FILE   FORBIDDEN_SYMBOL_REPLACEMENT
#define fopen(a, b)   FORBIDDEN_SYMBOL_REPLACEMENT
#define FORBIDDEN_SYMBOL_REPLACEMENT   FORBIDDEN SYMBOL!
#define fputc(a, b)   FORBIDDEN_SYMBOL_REPLACEMENT
#define fread(a, b, c, d)   FORBIDDEN_SYMBOL_REPLACEMENT
#define fseek(a, b, c)   FORBIDDEN_SYMBOL_REPLACEMENT
#define ftell(a)   FORBIDDEN_SYMBOL_REPLACEMENT
#define fwrite(a, b, c, d)   FORBIDDEN_SYMBOL_REPLACEMENT
#define longjmp(a, b)   FORBIDDEN_SYMBOL_REPLACEMENT
#define setjmp(a)   FORBIDDEN_SYMBOL_REPLACEMENT
#define system(a)   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