File: documentation

package info (click to toggle)
widelands 1%3A12-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 118,052 kB
  • ctags: 9,799
  • sloc: cpp: 71,051; python: 1,368; ada: 444; sh: 292; makefile: 282; objc: 274
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)