日期:2014-05-16  浏览次数:20681 次

这个宏cc编译正常, pro*c 编译出问题,有办法解决吗?
这个宏cc编译正常,   pro*c   编译出问题,有办法解决吗?


#define   XLOG(   ...   )   \
do{   \
                sprintf(   SysBuf,   "[%s][%s/%d/%s]   ",   curtime(),   __FILE__   ,   __LINE__   ,   __FUNCTION__   );   \
                sprintf(   SysBuf   +   strlen(   SysBuf   ),   __VA_ARGS__   );   \
                xlog(   SysBuf   );   \
}while(0)


proc错误信息:
Syntax   error   at   line   27,   column   15,   file   ../comm/comm.h:
Error   at   line   27,   column   15   in   file   ../comm/comm.h
#define   XLOG(   ...   )   \
..............1
PCC-S-02014,   Encountered   the   symbol   "... "   when   expecting   one   of   the   following:

      )   an   identifier,   define,   elif,   else,   endif,   error,   if,   ifdef,
      ifndef,   include,   line,   pragma,   undef,   exec,   sql,   begin,   end,
      var,   type,   oracle,   an   immediate   preprocessor   command,
      a   C   token,   create,   function,   package,   procedure,   trigger,   or,
      replace,
The   symbol   ") "   was   substituted   for   "... "   to   continue.

------解决方案--------------------
剛才還在cu見到樓主.