Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

https://clang.llvm.org/docs/AttributeReference.html#cleanup. We use it in several projects and compile those with clang.

Here's nbdkit compiled with clang 14:

https://gitlab.com/nbdkit/nbdkit/-/jobs/2814022460

  checking whether clang is Clang... yes
  [...]
  checking if __attribute__((cleanup(...))) works with this compiler... yes


Thanks for the example.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: