File: documentation

package info (click to toggle)
widelands 1%3A15-3squeeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 206,508 kB
  • ctags: 12,956
  • sloc: cpp: 96,550; python: 2,636; ada: 849; sh: 269; objc: 254; makefile: 180
file content (2 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (3)
1
2
This catches a numerical constant used as a loop condition. Instead of while (true) or while (1), one should write for (;;). But it avoids catching some cases that are used in macro definitions (see [http://vivekkutal.blogspot.com/2006/03/do-while0.html]):
#define macro(...) do {...} while (false)