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:
committed by
Arnaud Charlet
parent
9f29c05e32
commit
3de8a540d8
@@ -885,6 +885,9 @@ enter_macro_context (cpp_reader *pfile, cpp_hashnode *node,
|
||||
pfile->cb.used_define (pfile, pfile->directive_line, node);
|
||||
}
|
||||
|
||||
if (pfile->cb.used)
|
||||
pfile->cb.used (pfile, result->src_loc, node);
|
||||
|
||||
macro->used = 1;
|
||||
|
||||
if (macro->paramc == 0)
|
||||
|
||||
Reference in New Issue
Block a user