[U-Boot-Users] Enforcement of coding standards

Rune Torgersen runet at innovsys.com
Thu Mar 6 17:57:52 CET 2003


I personally think that using  #if 0 to remove a piece of code is a good
thing...
It is much easier to use than /* */ when you cannot use C++ comments (like
most embedded code) and you avoid the problem you get if you try to comment
out a block of code that already has comments on it. Not all compilers
handle nested comments very well, and then short of removing the comments or
the code altogeter, usinf #if statements makes a lot of sense.





More information about the U-Boot mailing list