macro.c (enter_macro_context): Call cb.used callback if defined.
* macro.c (enter_macro_context): Call cb.used callback if defined. * directives.c (do_idef, do_ifndef): Ditto. * include/cpplib.h (struct cpp_callbacks): Add used callback. From-SVN: r154359
This commit is contained in:
parent
9f29c05e32
commit
3de8a540d8
4 changed files with 16 additions and 0 deletions
|
@ -508,6 +508,9 @@ struct cpp_callbacks
|
|||
/* Called before #define and #undef or other macro definition
|
||||
changes are processed. */
|
||||
void (*before_define) (cpp_reader *);
|
||||
/* Called whenever a macro is expanded or tested.
|
||||
Second argument is the location of the start of the current expansion. */
|
||||
void (*used) (cpp_reader *, source_location, cpp_hashnode *);
|
||||
};
|
||||
|
||||
#ifdef VMS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue