macro definition containing #include directive

前端 未结 9 927
抹茶落季
抹茶落季 2020-12-08 06:55

Is there a way to define a macro that contains a #include directive in its body?

If I just put the \"#include\", it gives the error

9条回答
  •  自闭症患者
    2020-12-08 07:34

    I will not argue the merits for it, but freetype (www.freetype.org) does the following:

    #include FT_FREETYPE_H
    

    where they define FT_FREETYPE_H elsewhere

提交回复
热议问题