Looks useful!
Pro tip, as a professional C/C++ dev, for macros:
Wrap the body in a do-while loop, to force a semicolon after it’s called https://stackoverflow.com/questions/1067226/c-multi-line-mac...
Pro tip, as a professional C/C++ dev, for macros:
Wrap the body in a do-while loop, to force a semicolon after it’s called https://stackoverflow.com/questions/1067226/c-multi-line-mac...
In genereal, I think hiding control flow in macros is a bad idea.