add va_copy()

This commit is contained in:
Ben Gras 2008-12-11 14:10:56 +00:00
parent 9bbee4f1ce
commit 3f30c3a0ee

View File

@ -80,6 +80,7 @@ typedef char *va_list;
#define va_arg(ap, type) \ #define va_arg(ap, type) \
(*((type *)((va_list)((ap) = (void *)((va_list)(ap) + __vasz(type))) \ (*((type *)((va_list)((ap) = (void *)((va_list)(ap) + __vasz(type))) \
- __vasz(type)))) - __vasz(type))))
#define va_copy(ap2, ap) (ap2) = (ap)
#define va_end(ap) #define va_end(ap)
#endif /* __GNUC__ */ #endif /* __GNUC__ */