Are empty macro definitions allowed in C? How do they behave?
It is simply a macro that expands to, well, nothing. However, now that the macro has been defined you can check with #if defined (or #ifdef) whether it has been defined. #define FOO int main(){ FOO FOO FOO printf(“Hello world”); } will expand to int main(){ printf(“Hello world”); } There are certain situations where this … Read more