Home > Software engineering >  The function of macro change how to write?
The function of macro change how to write?

Time:11-09

Modify code before
Stringstream ss;

Ss & lt; <<"Time=" & lt; Save_Log_To_File (ss. STR (). C_str ());

The modified code
Save_Log_To_File () & lt; <"Time=" & lt;
Need to how to define this macro?

CodePudding user response:

macro # and # #

CodePudding user response:

# define SaveLog2File "Save_Log_To_File () & lt; <\ "Time=" & lt;

CodePudding user response:

Macro is very easy to get wrong, I would like as a function of encapsulation,
  • Related