3 ms·
What's so squeaky clean about hiding a goto inside a macro?
by augustk 9y ago
What's so squeaky clean about hiding a goto inside a macro?
- le-mark 9y agoI guess you're referring to this[1]. I'd actually call that usage svelte. The macro is undefined not far after it's use in the file, and makes the section it's in far more readable. [1] https://github.com/lemon-lang/lemon/blob/9a0b3dbc854532b31f731a15f57365972d0cac73/src/lemon.c#L257 https://github.com/lemon-lang/lemon/blob/9a0b3dbc854532b31f7...
- billytetrud 9y agoWhy does it have the do-while(0)?
- le-mark 9y agoIt's a safeguard because {} statement blocks are optional [1]. [1] https://stackoverflow.com/a/923833/2561675 https://stackoverflow.com/a/923833/2561675