On 15/02/2012 2:11 AM, Charles Mills wrote:
Does anyone know of a way to get the XLC compiler to list all of the #define symbols that are in effect? XREF and ATTR list all ordinary symbols. There are several ways of course of determining the define "state" of any particular #define symbol. But does anyone know of an option or a "trick" to get a list of all of them?
Charles,
Unfortunately I don't know of any tricks as the compiler substitutes #define constants when you compile. IIRC you are coding in C++. If that's the case then #define was deprecated long ago in favour of static const. static const shows up in XREF listings and even better shows up in debuggers.
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

