Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我喜欢使用宏读取头文件中的环境变量,并在以下代码中分配给 LOGGING_ENABLED(静态值的状态为 1)。
#define LOGGING_ENABLED 1
有什么方法可以使用宏获取环境变量?