Table of Contents

C语言提示

1. 宏

#define PSQR(x) printf("the square of "#x" is %d\n", (x)*(x))
#define XNAME(n) x##n
XNAME(4) -> x4
#define PRINTF(...) printf(__VA_ARGS__)
#define PRINTF(fmt,args...)     printf(fmt,##args)

2. 函数指针

void (*Function_Pointer_Variable_Name)();

typedef void (*Function_Pointer_Type)();
Function_Pointer_Type Function_Pointer_Variable_Name;

3. week

__weak void function(void) {}