File: documentation

package info (click to toggle)
widelands 1%3A17-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 332,404 kB
  • sloc: cpp: 104,978; python: 3,073; ada: 855; sh: 435; makefile: 225
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)