[aspectc-user] Weaving in Macros

Jannis Stoppe jstoppe at informatik.uni-bremen.de
Mon Jul 14 17:44:42 CEST 2014


The website states "AspectC++ Release 1.1 is available at the Download
page. It has a faster and much better parser and supports weaving in
macro-generated code." Do I need to enable something to actually be able
to accomplish that? This aspect:

    pointcut module() = derived("sc_module");

    advice construction(module()) : after()
        std::cout << "instance created: ...\n";

Does nothing for instances that are created using the SC_MODULE macro...
Which should be defined by SC_MODULE(user_module_name) struct
user_module_name : ::sc_core::sc_module .

Any idea what the problem might be? Thanks in advance.

More information about the aspectc-user mailing list