我正在使用嵌入式系统,我最终得到了大量的HW接口#define宏.我想将所有这些放入一个单独的文件中(对于OOP-ness),但我不知道最好的方法#include.我只是将它们全部放入.c文件中,然后包含它吗?把它们放在.h文件中似乎很傻.
#define
#include
c embedded code-organization include c-preprocessor
c ×1
c-preprocessor ×1
code-organization ×1
embedded ×1
include ×1