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

Hopefully it'd at least be syntactically similar, so we can have an

  #ifdef __STDC_CLEANUP__
  #define my_cleanup(func) stdc_cleanup(func)
  #else
  #define my_cleanup(func) __attribute__((cleanup(func)))
  #endif
i.e. it would require that it at least goes in the same places as an attribute.


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

Search: