// qacpp_stdarg.h

#ifndef PRLGCC_INCLUDED_QACPP_STDARG
#define PRLGCC_INCLUDED_QACPP_STDARG

typedef void *__builtin_va_list;
#define va_start __builtin_va_start
#define va_arg __builtin_va_arg
#define va_end __builtin_va_end
#define __builtin_va_start(ap, parmN)	((void)((ap)=static_cast<decltype(ap)>(&(parmN))))
#define __builtin_va_arg(ap, type)	(*(type*)(ap))
#define __builtin_va_end(ap)		((void)((ap)=0))
#define __builtin_va_copy(d,s)

#endif
