//macro.cpp
#include <iostream>
using namespace std;
#define getAvgTime(x) ({ \
x+10; \ //千万不要写成return x+10;g++编译器会报错
})
int main() {
int x = 10, y=0;
y =getAvgTime(x);
cout <<"x = " << x <<", y = " << y <<endl;
return 0;
}#include <iostream>
using names