Difference between revisions of "CPP/Macros"
From ProgrammingExamples
< CPP
Daviddoria (Talk | contribs) (Created page with '==Macros.cpp== <source lang="cpp"> #define SetMacro(name,type) \ void Set##name (type _arg) // run // gcc -E file.cpp // to see the precompiler output int main() { SetMacro(Te…') |
(No difference)
|
Latest revision as of 08:36, 23 June 2010
Macros.cpp
#define SetMacro(name,type) \ void Set##name (type _arg) // run // gcc -E file.cpp // to see the precompiler output int main() { SetMacro(Test, int); }