From: cuz Date: Sat, 22 Jul 2000 18:29:43 +0000 (+0000) Subject: Added va_copy X-Git-Tag: V2.12.0~3327 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b841f794cf9cd27ba113726972d6b5aedb74f4e5;p=cc65 Added va_copy git-svn-id: svn://svn.cc65.org/cc65/trunk@190 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/stdarg.h b/include/stdarg.h index 591048039..66377fa63 100644 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -16,6 +16,7 @@ typedef unsigned char* va_list; #define va_start(ap, fix) ap = (va_list)&fix + *(((va_list)&fix)-1) - __fixargs__ #define va_arg(ap,type) ((type)*(ap -= ((sizeof (type) + 1) & ~1))) +#define va_copy(dest, src) ((dest)=(src)) #define va_end(ap) /* This is only valid *before* the first call to va_arg. It will also work