#include <stdio.h>
#include <wchar.h>
int main(void) {
#define STRING(x) x"string"
char * l_pString = STRING();
wchar_t * l_pWideString = STRING(L);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDx3Y2hhci5oPgoKaW50IG1haW4odm9pZCkgewojZGVmaW5lIFNUUklORyh4KSB4InN0cmluZyIKCmNoYXIgKiBsX3BTdHJpbmcgPSBTVFJJTkcoKTsKd2NoYXJfdCAqIGxfcFdpZGVTdHJpbmcgPSBTVFJJTkcoTCk7CglyZXR1cm4gMDsKfQo=
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();
^