I am trying to create a macro that allows me to model the behavior below, but this does not work. Can I insert comment characters with a macro? What else is needed?
#define model_interface(CLASS, ROOT) \ class CLASS : public NInterface<ROOT> { \ private: \ CLASS(CLASS&) { } \ // 'two slashes should be actually inserted too so another characters on same row are ignored' model_interface(Element, ElementRoot) { // 'previous bracket should be ignored' // members declarations here }
source share