[wave] question about preprocessing hooks
Hello,
What is a correct way to implement 'defined_macro' hook? For some reason I
always get empty 'definition' list.
My hook implementation looks like this:
class hook : public
boost::wave::context_policies::default_preprocessing_hooks
{
public:
template
Alexey Bakhvalov wrote:
What is a correct way to implement 'defined_macro' hook? For some reason I always get empty 'definition' list.
My hook implementation looks like this:
class hook : public boost::wave::context_policies::default_preprocessing_hooks { public: template
void defined_macro(TokenT const ¯o_name, bool is_functionlike, ParametersT const ¶meters, DefinitionT const &definition, bool is_predefined) { if (!definition.empty()) { // never gets here } } }; I am using Boost 1.33 and VC .NET 2005 compiler.
This is a known issue in 1.33.0 and it has been fixed for 1.33.1 (and in CVS::HEAD). Regards Hartmut
participants (2)
-
Alexey Bakhvalov
-
Hartmut Kaiser