<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello all,<br>
    I'm new to libclang and using the Clang C-interface (version 3.6.0,
    222169) to parse some C header files.<br>
    <br>
    My goal is to extract all the #define constants from the .h files.<br>
    <br>
    For example, for the following #defines:<br>
    <br>
    #define FEE 12<br>
    #define FIE 34<br>
    #define FOE (FEE+FIE)<br>
    #define FUM FIE<br>
    <br>
    I would like to get both the names and the resulting raw values as
    follows:<br>
    <br>
    FEE = 12<br>
    FIE = 34<br>
    FOE = 46<br>
    FUM = 34<br>
    <br>
    I've got as far as handling <em style="color: rgb(0, 0, 0);
      font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
      font-size: 14px; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">CXCursor_MacroDefinition, </em>and getting the macro name
    from the cursor spelling. But after that, it's not clear to me how I
    might obtain further information about the defined macro values
    themselves.<br>
    <br>
    Is this possible using the libclang C interface? <br>
    If so, could someone please provide an example, or suggest an
    approach that that might work?<br>
    <br>
    Thank you,<br>
    <br>
    Mark.<br>
    <br>
  </body>
</html>