Go to the documentation of this file.
64#if !defined (PLIBSYS_H_INSIDE) && !defined (PLIBSYS_COMPILATION)
65# error "Header files shouldn't be included directly, consider using <plibsys.h> instead."
68#ifndef PLIBSYS_HEADER_PSTDARG_H
69#define PLIBSYS_HEADER_PSTDARG_H
76#ifndef PLIBSYS_VA_COPY
84#define p_va_list va_list
93#define p_va_start(ap, last) va_start(ap, last)
104#define p_va_arg(ap, type) (type) va_arg(ap, type)
112#define p_va_end(ap) va_end(ap)
123#ifdef PLIBSYS_VA_COPY
124# define p_va_copy(dst, src) PLIBSYS_VA_COPY(dst, src)
126# define p_va_copy(dst, src) ((void) memcpy (&(dst), &(src), sizeof (va_list)))
136#define pint8_va_arg(ap) ((pint8) p_va_arg(ap, pint))
145#define puint8_va_arg(ap) ((puint8) p_va_arg(ap, puint))
154#define pint16_va_arg(ap) ((pint16) p_va_arg(ap, pint))
163#define puint16_va_arg(ap) ((puint16) p_va_arg(ap, puint))
172#define pint32_va_arg(ap) ((pint32) p_va_arg(ap, pint))
181#define puint32_va_arg(ap) ((puint32) p_va_arg(ap, puint))
190#define pint64_va_arg(ap) (p_va_arg(ap, pint64))
199#define puint64_va_arg(ap) (p_va_arg(ap, puint64))
208#define ppointer_va_arg(ap) (p_va_arg(ap, ppointer))
217#define pconstpointer_va_arg(ap) (p_va_arg(ap, pconstpointer))
226#define pboolean_va_arg(ap) ((pboolean) p_va_arg(ap, pint))
235#define pchar_va_arg(ap) ((pchar) p_va_arg(ap, pint))
244#define pshort_va_arg(ap) ((pshort) p_va_arg(ap, pint))
253#define pint_va_arg(ap) (p_va_arg(ap, pint))
262#define plong_va_arg(ap) (p_va_arg(ap, plong))
271#define puchar_va_arg(ap) ((puchar) p_va_arg(ap, puint))
280#define pushort_va_arg(ap) ((pushort) p_va_arg(ap, puint))
289#define puint_va_arg(ap) (p_va_arg(ap, puint))
298#define pulong_va_arg(ap) (p_va_arg(ap, pulong))
307#define pfloat_va_arg(ap) ((pfloat) p_va_arg(ap, pdouble))
316#define pdouble_va_arg(ap) (p_va_arg(ap, pdouble))