3 ms·
New C keywords now use a leading underscore (_Atomic, _Bool, _Static_assert, ...) and come with a header file you can include to get a more friendly name (stdbo
by cygx 12y ago
New C keywords now use a leading underscore (_Atomic, _Bool, _Static_assert, ...) and come with a header file you can include to get a more friendly name (stdbool.h, stdatomic.h, assert.h, ....).
As to not keeping your C code C++ clean: Just use a dedicated C compiler and link the object files.
- JoeAltmaier 12y agoThen what header files do you compile your C++ with? That's all there was at the time.
- cygx 12y agoIf it occurs in public header files or if you use C++ keywords as external symbols, that is indeed a bit... inconsiderate, to say the least. Header files intended for public comsumption should stick to the intersection of C and C++ in most cases.