debug error in visual studio
<p>can somebody please explain me what am I doing wrong here, I receive an error unexpected end of file and also missing function header, thanks in advance</p>

<pre><code>static char debug[256];

#define DBGPRINT(...)           {sprintf_s(debug, 256, __VA_ARGS__); OutputDebugStringA(debug);}

#define CHECK_READ(status, str) while(0){                                                                               \
                                    if(0 == status){                                                                    \           
                                        DBGPRINT("Message %s\n", str);                  \
                                        return 0;                                                                       \
                                    }                                                                                   \
                                }                                                                                       
int main(){

char* str = "hello world";
status = 0;
CHECK_READ(status, str);

return 0;
}
</code></pre>

<p>error:</p>

<pre><code>Error line  7   error C2447: '{' : missing function header (old-style formal list?)
Error   line 11 error C2447: '{' : missing function header (old-style formal list?)
Error   line 15 error C2017: illegal escape sequence    
Error   line 19 fatal error C1004: unexpected end-of-file found 
</code></pre>
