帮助你理解 在条件编译下如何理解 include
#ifndef TESTLOW_H__
#define TESTLOW_H__
#include <stdio.h>
/**
* include 头文件是同从.c 开始加载.c里第一个.h 在加载 .h 里面的文件到.c 一步步的递归
* */
/*.c 里的.h 称之为 最外层 .h,.h 里的.h 为内嵌层。gcc -E 为了 .c加载 .h的时候从外由内递归 include*/
typedef struct teststruct_low {
int test_low_int;
char test_low_char[20];
int test_low_parm;
} teststruct_low;
teststruct_low test_low[]=
{
#define A
#include "testmeddle.hAA
#undef A
{1,"test_low1",1},
{2,"test_low2",2},
{3,"test_low3",3}
}
#endif