c++ - Options for defining preprocessor macros with parameters for entire project or solution in Visual Studio -


i want macros having parameters available in files in project or better complete solution. in vs2010, if add them preprocessor definitions in properties->configuration properties->c/c++->preprocessor using like

square(x)=((x)*(x));cube(x)=(square(x)*x);  

the macro definitions not used compiler. approach may close since intellisense provides correct definitions when hover on macros in source code.

is there way define macros , make them visible without including header definitions in every file?

thanks ideas!


Comments