I have the following macro:<br><br>#define LOGMSG(level, buffer, ...) Logger::lprintf (level, buffer, ##_VA_ARGS__)<br><br>And in a certain C.cc file, I do the following:<br><br>LOGMSG (SILENT, "C::%s () - debugging...\n", __FUNCTION__,);<br clear="all">
<br>When a run ac++, I get the following:<br><br>* Running ac++ 1.0pre3<br>* Handling Translation Unit `C.cc'.<br>C.cc:30: error: pasting "," and "__FUNCTION__" does not give a valid preprocessing token<br>
<br>If I remove the ##, it works, but this way I can't execute LOGMSG with a empty list of __VA_ARGS__<br><br>Does anybody know why?<br><br>Thanks in advance!!!<br><br>-- <br>_____________________________________________<br>
<br>                       Leandro Souza Costa<br><br>"A vitória se encastela em jardins encantadores,<br>  mas para se chegar a ela não há caminho de flores"<br>_____________________________________________<br>