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 a; int testFunction(int a, int b); int testFunction(int a, int b) { return a + b; } class testClass { public: testClass(int a) : a(a) {} virtual ~testClass(); void cxxMethod(double a) {} private: int a; }; #define vardeclmacro varDeclMacroExpanded int vardeclmacro; }; // namespace