Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
Whatever, I agree with you, it would be worse in C / C++ code using macros.Suppose you got a multiline macro like this:#define some_macro \ do_something_1(); \ do_something_2();And using this macro without parenthesis:if(...) some_macro;orfor(...) ...
10 Feb 2011Andrew Rissing
Always review all changes before submitting them. Especially, if using a global find and replace.
Prafulla is a passionate software developer. He has mostly worked on C++ and .NET projects. He has a Masters Degree in Software Systems from BITS, Pilani India. Currently he is working for nVidia corporation as a Senior System Engineer.
He is an embedded technology enthusiast. He likes to spend his time on electronics projects.