인도프로그래머들이 쓰는 define 방법
#include
#define test
#define test_ver1
#ifdef test_ver1
test int func(void); //« 여기 이상하지 않은가?? 궁굼하지 않은가?? 저 앞에 test는 모란말인가?
int main(int argc, char *argv[])
{
func();
return 0;
}
test int func(void){
printf(“우와 신기하다 ver1 “);
}
#endif //test_ver1
#ifdef test_ver2
test int func(void);
int main(int argc, char *argv[])
{
func();
return 0;
}
int func(void){
printf(“우와 신기하다 ver2”);
}
#endif //test_ver2
#ifdef ___________
define를 저런식으로 쓸줄은… 신기하다.. 코드 분석하면서.. 점점 미쳐간다.
재미있어 재밌어.. 하하… 또또 태스트… ^^;
#endif
\