Using the Macro Expansion Window

The Macro Expansion window enables you to investigate source code with complex multiple-line macros. Macros are often used to define constants, but can also be used to define code fragments that can be used like functions. When you work with code that uses macros in this way, it might be difficult to understand what is happening in the code. You may need to examine the macros in context with the source code that is calling the macro.

To view the source code with expanded macro code:

In the Macro Expansions window, the macro contents are located inside guarded blocks. Semantic highlighting is provided for expanded code. You can use hyperlinks in the Macro Expansion window to go to other source files. Also there is highlighting for macro parameter usages.

The left column of the Macro Expansion window includes several toolbar buttons:


Copyright © 2014, Oracle and/or its affiliates. All rights reserved.