Boost logo

Boost Users :

From: Alexey Bakhvalov (bakhvalov_at_[hidden])
Date: 2005-11-20 07:19:27


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 <typename TokenT, typename ParametersT, typename DefinitionT>
void defined_macro(TokenT const &macro_name, bool is_functionlike,
ParametersT const &parameters, DefinitionT const &definition, bool
is_predefined)
{
    if (!definition.empty()) {
        // never gets here
    }
}
};

I am using Boost 1.33 and VC .NET 2005 compiler.

Alexey Bakhvalov


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net