Reply to post: Re: polishing one

'Boss, I've got a bug fix: Nuke the whole thing from orbit, rewrite it all'

Morzel
Alert

Re: polishing one

Preprocessor macros are probably the second best way to shoot yourself in the foot after gotos (if not the best way).

They can be genuinely useful when implemented properly, but I've seen far too many cases where it went pear shaped due to macro expansion issues (hint: braces and/or brackets), or unintended macro redefinition issues somewhere in the include path - especially when cross-compiling stuff.

So: use them wisely and sparingly :-).

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon