logoalt Hacker News

fuhsnntoday at 1:13 PM1 replyview on HN

> C23 gave us [[cleanup]] attributes

C23 didn't introduce it, it's still a GCC extension that needs to be spelled as [[gnu::cleanup()]] https://godbolt.org/z/Gsz9hs7TE


Replies

cassepipetoday at 2:00 PM

It is surprisingly hard to find information about it, do you have any ? From what I can guess it's a new syntax but it's the feature itself is still an extension ?

show 3 replies