Re: [cc65] va_copy(): Any alternatives

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-05-09 13:57:32
Hi!

On Mon, May 09, 2005 at 10:01:57AM +0200, Spiro Trikaliotis wrote:
> Both variants work. Either Oliver's solution, or (possibly, the better
> one)
>
>    #define va_copy(dest, src) __va_copy(dest,src)

Thanks! I've added the following:

#if defined(__GNUC__) && (__GNUC__ == 2)
#define va_copy(dest,src)       __va_copy(dest, src)
#endif

The test for GNU C version 2 is used because I don't know if very old versions
do have __va_copy.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon May 9 13:57:41 2005

This archive was generated by hypermail 2.1.8 : 2005-05-09 13:57:43 CEST