atexit のスコープ版みたいなやつがあるのかな
@anqou ブログ書きました。答えを言うと __attribute__((cleanup(func))) が使えます https://mstdn.maud.io/@orumin/108329455530504247
@orumin おおーーなるほど。実用性はともかく おもしろいですね、これ
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.