Use the \ at the end of the line. I've seen a lot of C macos where they use a do...while(0)
#define foo() do \
{
//code goes here \
\
\
}while(0);
Also, remember to use parenthases in many instances.
Example:
#define foo(x) a+b
//should be
#define foo(x) (a+b)