条件编译

1. 例子

C
1#ifdef DEBUG
2 printf("debug v=%d\n", v);
3#endif
4 
5#ifndef CONFIG_H
6#define CONFIG_H
7#define BOARD_NAME "G474"
8#endif

2. 用途