-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
tt.c
#include "tt.h"
#include "tt.h"
tt.h
#define PRINT_NUMERIC_ID 1
#if PRINT_NUMERIC_ID == 0
1
#elif PRINT_NUMERIC_ID == 1
2
#endif
#undef PRINT_NUMERIC_ID
mcc -a -i -E t.c > log
Work incorectly; it cut full block of full define, with some error:
Error: Lone #endif directive
Error: Lone #endif directive
this work fine:
tt.h
#define PRINT_NUMERIC_ID0
#ifdef PRINT_NUMERIC_ID0
1
#endif
#ifdef PRINT_NUMERIC_ID1
2
#endif
p.s. maybe it my mistake, because source has been updating, for compiling in msvc, and unrolling _Generic and PRINT macros; can't run it under gcc/mingw;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels