Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rxaxm
· 8y ago · 0 comments
in college my buddy made a defer function in C that is a little simpler (but only works with clang)
https://github.com/asubiotto/cdefer/blob/master/defer.h
Comments
[–]
cryptonector
8y ago
It's not just that it only works with Clang, but that it only works with
Blocks
(Apple's extension to C which basically adds closures of indefinite extent, which is pretty cool).