I think this is my favourite C macro to this day.
Also, TIL you can put while loops in there, and some people actually DO that.
Ghidra is easier to read here. xD
I think this is my favourite C macro to this day.
Also, TIL you can put while loops in there, and some people actually DO that.
Ghidra is easier to read here. xD
@CyReVolt do while(0) loop is usual trick in case of macro to be able to add semicolon after macro without complaints (and yes most people want semicolon there for *various* reason (external linters etc.)
#preprocessor sux