Hi,

"Krzysztof Kowalczyk" <[EMAIL PROTECTED]> writes:

> The other form works for both msvc and gcc (see
> http://codepad.org/VxF4pBHg for a proof (well, a proof that it
> compiles with gcc, or at least a version of gcc)) so the #ifdef isn't
> necessary, just use __VA_ARGS__ version. I verified that it compiles
> with msvc 2005.

Using __VA_ARGS__ is not quite correct with GCC.  You should be able
to call the _send (or _sendv) macro without supplying any arguments
after RCV.  The comma preceding __VA_ARGS__ causes a syntax error
under GCC when there are no other arguments, but if you use ##ARG it
deletes the comma and all is well.

Does MSVC compile properly without arguments?

i.e. does:

_send("abc", 123)

cause a syntax error?

The whole point will be moot when COLA is bootstrapped and no longer
requires a C compiler to generate working executables.

Good luck,

-- 
Michael FIG <[EMAIL PROTECTED]> //\
   http://michael.fig.org/    \//

_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to