2012-06-05 3 views

답변

2

이렇게하는 한 가지 방법을 발견했습니다. 이것이 gcc 이외의 다른 것에서 작동하는지 확신 할 수 없습니다.

#define first_(x, y) x 
#define first(t) first_ t 

#define second_(x, y) y 
#define second(t) second_ t 

#define T (a, b) 

first(T) // expands to a 
second(T) // expands to b