fork download
  1. #include <stdio.h>
  2. #include <wchar.h>
  3.  
  4. int main(void) {
  5. #define STRING(x) x"string"
  6.  
  7. char * l_pString = STRING();
  8. wchar_t * l_pWideString = STRING(L);
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:8:34: error: 'L' undeclared (first use in this function)
 wchar_t * l_pWideString = STRING(L);
                                  ^
prog.c:5:19: note: in definition of macro 'STRING'
 #define STRING(x) x"string"
                   ^
prog.c:8:34: note: each undeclared identifier is reported only once for each function it appears in
 wchar_t * l_pWideString = STRING(L);
                                  ^
prog.c:5:19: note: in definition of macro 'STRING'
 #define STRING(x) x"string"
                   ^
prog.c:5:20: error: expected ',' or ';' before string constant
 #define STRING(x) x"string"
                    ^
prog.c:8:27: note: in expansion of macro 'STRING'
 wchar_t * l_pWideString = STRING(L);
                           ^
prog.c:8:11: warning: unused variable 'l_pWideString' [-Wunused-variable]
 wchar_t * l_pWideString = STRING(L);
           ^
prog.c:7:8: warning: unused variable 'l_pString' [-Wunused-variable]
 char * l_pString = STRING();
        ^
stdout
Standard output is empty