Home > Back-end >  C how to connect the L and a macro
C how to connect the L and a macro

Time:11-24

My demand is that my first defines a macro:
# define CMD_USER_MANAGE "UserManage
"This macro defines a common string literals, now I need to use this macro said a wide string literals, for example, I have the following a variable:
STD: : wstring strCmd;
I want to use strCmd the string comparison as above, but also to use macros should do? That is to say, I want to make after the macro expansion for
L "UserManage" what should I do? Use l # CMD_USER_MANAGE not line,

CodePudding user response:

# define CMD_USER_MANAGE "UserManage
"L # # define N (X) X
Auto x=N (CMD_USER_MANAGE);
  • Related