I have a project in which basically i have to concatenate existing code. Each code comes with its own #defines. But defines are not touched by the compiler, but the preprocessor.
Each snippet of the program will exist in its own fucntion.
Is it possible to include the #defines of each program - now each function, inside this function (and visible only to this function's scope)?
The proper way to do it, would be to replace text reassignment from #define to typedef?
I understand typedef is originally for defining types. But can it be used here? Is there another alternative?