/*
매크로는 전처리기가 처리
inline 함수는 컴파일러가 처리
*/
#include <iostream>
#define SQUARE(X) ((X)*(X))
inline int func(int x) {
return x * x;
}
int main()
{
std::cout << "SQUARE(2): " << SQUARE(2) << std::endl;
std::cout << "func(2): " << func(2) << std::endl;
return 0;
}