1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
namespace vardecl_ns{ int gtesta; int testFunction(int a, int b); int testFunction(int a, int b) { return a + b; } class testClass { public: testClass(int a) : testa(a) {} virtual ~testClass(); void cxxMethod(double a) {} private: int testa; }; #define vardeclmacro varDeclMacroExpanded int testvardeclmacro; }; // namespace