brintos

brintos / llvm-project-archived public Read only

0
0
Text · 628 B · f0d6b09 Raw
28 lines · c
1// #pragma push_macro/pop_macro2#define INCLUDE_A3#pragma push_macro("INCLUDE_A")4#undef INCLUDE_A5#pragma pop_macro("INCLUDE_A")6 7#ifdef INCLUDE_A8#include "a.h"9#endif10 11// #pragma push_macro/pop_macro with argument macro expansion12#define INCLUDE_B13#define MACRO_NAME "INCLUDE_B"14 15#pragma push_macro(MACRO_NAME)16#undef INCLUDE_B17#pragma pop_macro(MACRO_NAME)18 19#ifdef INCLUDE_B20#include "b.h"21#endif22 23// #pragma include_alias (MS specific)24// When compiling without MS Extensions, the pragma is not recognized,25// and the file c_alias.h is included instead of c.h26#pragma include_alias("c_alias.h", "c.h")27#include "c_alias.h"28