How to make a multi-line macro preprocessor? I know how to make one line:
#define sqr(X) (X*X)
but I need something like this:
#define someMacro(X) class X : public otherClass { int foo; void doFoo(); };
How can I make this work?
This is just an example; a real macro can be very long.
c ++ c c-preprocessor
noisy cat May 2 '12 at 18:25 2012-05-02 18:25
source share