On Wed, Jun 26, 2013 at 11:39:17AM -0600, Tom Tromey wrote:
> Call ht_lookup and convert to a cpp hash node, e.g., from grepping:
> 
>   return CPP_HASHNODE (ht_lookup (pfile->hash_table, 
>                                 buf, bufp - buf, HT_ALLOC));
> 
> Then see if the node's 'type' field is NT_MACRO.
> 
> I think that should work.

Though, for all such changes consider what will happen if people
compile with -save-temps, or preprocess separately from compilation (ccache
etc.).

        Jakub

Reply via email to