有没有办法只在编译器可用时才包含库?
我本想和检查它#ifndef(如下图所示),但如果宏名没有定义,它只是检查和我真正需要的是检查如果编译器可以达到在编译时间C库.
#ifndef
#ifndef _MY_LIBRARY_H #include "my_library.h" #endif
有没有办法进行此验证?
c macros compilation-time
c ×1
compilation-time ×1
macros ×1