HNHacker News
TopNewBestAskShowJobs

Snaipe

233 karma · joined June 21, 2013

submissionscomments
Snaipe··on Show HN: Smart pointers for the C programming language
GCC and Clang specific, as said in the readme page.

I know, apply.h is ugly, but I did not want to lose too much time on that (and it was easy to dump these lines from a shell command), as it is only used for an optional macro. When the recursion limit is hit, every parameter after that is ignored, and I doubt someone will ever use a struct with 64 members needing destruction, considering of course they would use this, and use the completely optional "DESTRUCTOR" macro helper.

But yes, I get it, I'll probably find the time to implement some kind of recursion based off OBSTRUCT/DEFER that we often see on stackoverflow.

Snaipe··on Show HN: Smart pointers for the C programming language
Article: http://snaipe.me/c/c-smart-pointers/

Feedback appreciated, be it on the article, project or website ! Be wary that english is not my mother tongue, so there might be some grammatical weirdities and such.

← PreviousPage 2 of 2