Opened 8 years ago

#10733 new Bugs

[wave] Hooks not called for expanding specific predefined macros

Reported by: Tamas Berghammer <berghammer.tamas@…> Owned by: Hartmut Kaiser
Milestone: To Be Determined Component: wave
Version: Boost Development Trunk Severity: Problem
Keywords: hook, predefined macro, expansion Cc:

Description

Non of the preprocessor hook is called during the expansion of the following predefined macros: __LINE__, __FILE__, __INCLUDE_LEVEL__.

This is because the expansion of these macros are handled with a specific code path which skips the hooks.

Expected behavior:

  • expanding_object_like_macro hook is called before the expansion
  • expansion happens based on the return value from the hook
  • expanded_macro hook is called after the expansion

Change History (0)

Note: See TracTickets for help on using tickets.