test_cppmacros.cxx
Go to the documentation of this file.
1 #include <iostream>
2 
3 #define FOO(TypeName,varname) \
4  namespace FooBar { \
5  void the##TypeName##func(TypeName var##varname) { std::cout << var##varname << std::endl; }}
6 
7 FOO(int, INT)
8 
10 {
11  FooBar::theintfunc(42);
12 }
int main()
#define FOO(TypeName, varname)