]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libcpp/macro.c
* macro.c (enter_macro_context): Call cb.used callback if defined.
[thirdparty/gcc.git] / libcpp / macro.c
index 1d284cf9f8a9043fea21789d04d45d4b0a332a2f..6647db567145461789353fe893a6307bc6f86dfc 100644 (file)
@@ -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)