Quantcast
Channel: Consolidating GNU C's and C23's attributes - Code Review Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by Davislor for Consolidating GNU C's and C23's attributes

For any attribute that has either a standard version or a GCC/Clang extension, the separate #if clauses need to be #if/#elif blocks, This lets the header work either on any C23 compiler that supports...

View Article


Consolidating GNU C's and C23's attributes

C23 has introduced attribute specifier sequences. Consequently, the header below attempts to conditionally define macros for these sequences (for my own use cases). In cases where a compiler does not...

View Article


Answer by Toby Speight for Consolidating GNU C's and C23's attributes

This test is clearly over-doing it:#if defined(__STDC__) && defined(__STDC_VERSION__) && \ (__STDC_VERSION__ >= 202000L) \ #include <stddef.h> /* nullptr_t */There's no need to...

View Article
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>