Open corentinmusard opened 4 years ago
On gcc and clang, there is this warning when you put a ';' at then end of each macro when compiling with -pedantic.
-pedantic
// test.c(pp) #include "fff.h" DEFINE_FFF_GLOBALS; FAKE_VOID_FUNC(DISPLAY_init);
any update on this?
Then don't do it?
"Then don't do it" is not a solution. Macros should be implemented in such a way that when they are used in an expression they are always terminated with ";"
On gcc and clang, there is this warning when you put a ';' at then end of each macro when compiling with
-pedantic
.