Check whether function is declared with C preprocessor?

后端 未结 5 1477
醉梦人生
醉梦人生 2020-12-20 12:31

Is it possible to tell the C preprocessor to check whether a function (not a macro) is declared? I tried the following, but it doesn\'t appear to work:

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-20 12:52

    Since the preprocessor is not aware of the language C/C++ (it really only does text-replacement) I would guess that this is not possible. Why do you want to do this? Maybe there is another way.

提交回复
热议问题