Commit 9a191b5b authored by Joerg Bornemann's avatar Joerg Bornemann Committed by hjk
Browse files

Doc: add handling of the preprocessor's "defined" op to coding style



Change-Id: I3d6e732ad45e3fcceb8d899c28ac4c4a02bb9e23
Reviewed-by: default avatarLeena Miettinen <riitta-leena.miettinen@nokia.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 0d906700
......@@ -866,6 +866,17 @@
#if Foo - 0 == 0
\endcode
\o When checking for a preprocessor define using the \c{defined}
operator, always include the variable name in parentheses.
\code
#if defined(Foo)
-NOT-
#if defined Foo
\endcode
\endlist
\section1 Class Member Names
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment