From Newsgroup: comp.lang.c
On 08/09/2025 14:10, Thiago Adams wrote:
Are you using C23 attributes?
Not as yet - I haven't used C23 for real code yet.
If you answered yes: Is it directly or using a macro?
It would likely be via macros. I already use a number of gcc
attributes, including ones that are the same or similar to C23
attributes (like noreturn and const function attributes, etc.). I use
these already via macros, since the gcc names are not always ideal
(typically for historical reasons), and because macros let you easily
adapt for different compilation environments.
If and when C23 becomes prevalent, I might move to C23 attribute syntax.
In the meantime, since gcc (and possibly some clang usage) is the
compiler I use most, gcc attribute syntax works fine for my needs.
--- Synchronet 3.21a-Linux NewsLink 1.2