-dM (-qshowmacros)

Pragma equivalent

None

Purpose

Emits macro definitions to preprocessed output.

Emitting macros to preprocessed output can help determine functionality available in the compiler. The macro listing may prove useful for debugging complex macro expansions, as well.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -dM--------------------------------------------------------><

Read syntax diagramSkip visual syntax diagram
        .-noshowmacros-.   
>>- -q--+-showmacros---+---------------------------------------><

Defaults

-qnoshowmacros

Usage

Note the following when using this option:
  • This option has no effect unless preprocessed output is generated; for example, by using the -E or -P options.
  • If a macro is defined and subsequently undefined before compilation ends, this macro will not be included in the preprocessed output.
  • Only macros defined internally by the preprocessor are considered predefined; all other macros are considered as user-defined.

Related information



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us