[previous] 0841 [next] Using '#undef'.
Preprocessing REFERENCE - ISO:C90-6.8.3.5 Scope of Macro Definitions

#undef has been used to undefine a macro.

Some programming standards prohibit the use of #undef. The use of #undef can inhibit readability and comprehension, especially through header includes.

For example:


/*PRQA S 2017,3211,3408 ++*/

#define MAC 5

int x = MAC;

#undef MAC                      /* Message 0841 */

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents