【发布时间】:2014-06-06 15:27:51
【问题描述】:
我有一个包含常量 F_CPU 的头文件,我使用宏保护
header.h
#ifndef F_CPU
#define F_CPU 1000000UL
#endif
和 source.c 文件
#define F_CPU 16000000UL
#include "header.h"
第一个宏(在c文件中)如何扩展尚未包含的值?
【问题讨论】:
-
我读到了“预处理器重新扫描”,但不明白。
标签: c scope macros include c-preprocessor