summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cheat.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-07-31 08:30:22 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-07-31 08:30:22 +0000
commite8f2759a0c9e0bdd82a214bdad6e965be32760c6 (patch)
tree700142bf373ecfa7c9a575695d862c6801e83ffd /src/emu/cheat.c
parente0409bc7b193758db47acad49695d37545a6e258 (diff)
(From Atari Ace. Note that I only took the first patch, which applied
to whole functions. The other one I'm not so sure about. Commented code is usually hilighted differently, making it very easy to spot.) Hi mamedev, This set of patches has one aim only, to identify chunks of code that have been disabled by the use of C/C++ comments, and to disable them instead by using the preprocessor. The C comment approach to disabling code isn't safe (embedded comments will trip it up), and the C++ comment approach isn't elegant (you shouldn't need to touch every line to disable a chunk of code). Using #if...#endif is preferable always, excepting perhaps if (0) { ... }. The patch has three parts. The first only handles cases where full functions were disabled. The second handles cases where parts of functions were disabled. The third then tries to restore the whitespace that the use of comments converted from tabs to spaces via srcclean.exe. It also cleans up the whitespace in a handful of the files in areas outside of the original two patches. ~aa
Diffstat (limited to 'src/emu/cheat.c')
0 files changed, 0 insertions, 0 deletions