3 ms·
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 htt
by rxaxm 9y ago
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 https://github.com/asubiotto/cdefer/blob/master/defer.h
- cryptonector 9y agoIt'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).