|

楼主 |
发表于 2009-6-10 08:33:51
|
显示全部楼层
Post by neubuffalo;1995969
new_phase_hook是一个指向函数的指针
由于无法输入下划线,用-代表下划线:
new-phase-hook确实像函数指针,我把他的定义处找到:
int (*new-phase-hook) --P((int)) = NULL;
好像跟别的函数指针的定义不一样,其中--P的定义为:
#ifndef --P
#ifdef --STDC--
#define --P(x) x
#else
#define --P(x) ()
#endif
#endif
能给详细解释一下这个指针是如何定义的马?
--P((int))如何解释? |
|