]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libcpp/include/cpplib.h
* macro.c (enter_macro_context): Call cb.used callback if defined.
[thirdparty/gcc.git] / libcpp / include / cpplib.h
index e95f01a412a5e19817a330a496ede089a8ee59f6..6175bbcb092dd5dcb8f43f567c16d3652ca78c8d 100644 (file)
@@ -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