I'm trying to review a C/C++ project which is heavily dealing with macros and function-like macros. What I would like to do is to replace the define and function-like macros with their replacement.
For example I have this file:
#include <iostream>
#define SUM(a,b,c,d) a+b+c+d
using namespace std;
int main(){
    cout << SUM(1,2,3,4) << endl;
}
And I want to reach to this file:
#include <iostream>
using namespace std;
int main(){
    cout << 1+2+3+4 << endl;
}
Please note that I'm not looking to replace the #include lines.
EDIT:
gcc -E expands the #define macros but it will also expand the #include macros as well. I DO NOT want the #include to be expanded.
 
     
     
    