我发现这是 eclipse idexer/intelisence 的一个命题,无论它叫什么。就是这样:
char *_EXFUN(index,(const char *, int));
首先,它看起来像一个返回 char 指针的函数,但参数(如果它是一个函数)在我看来相当混乱。怎么在参数列表中我们有一个括号。
_EXFUN
似乎是某些平台上标准标头中使用的宏,例如here https://www.gnu.org/software/m68hc11/examples/stdio_8h-source.html
#ifndef _EXFUN
# define _EXFUN(N,P) N P
#endif
Thus, char *_EXFUN(index,(const char *, int));
扩展到
char * index(const char *, int)
有时会使用此技巧,以便可以使用以下方法预处理相同的标头_EXFUN
设置为其他内容,例如内省函数签名,或在库中声明导出的符号。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)