mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 09:49:11 +00:00
44393b2dc8
A new header file common/forbidden.h is included by scummsys.h and it re-#defines numerous symbols like fopen(), fread(), system(), etc. with garbage, in order to provoke compile errors in any code using them. If a .cpp file really *must* use any of these (e.g. because it is a backend file), then these redefinitions can be disabled by #defining FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever this is done, an explanatory comment should be added. Note that this system cannot catch all "bad" usages (notably the Lua code in the sword25 engine), as it can only work if scummsys.h is included. svn-id: r53961 |
||
---|---|---|
.. | ||
fmv | ||
gfx | ||
input | ||
kernel | ||
math | ||
package | ||
script | ||
sfx | ||
util | ||
detection.cpp | ||
module.mk | ||
sword25.cpp | ||
sword25.h |