va_start
Definition
#define va_start(ap,v)
        (ap = (va_list)(&reinterpret_cast(v)) + \
        ((sizeof(v) + sizeof(int) - 1) &
        ~(sizeof(int) - 1)))
 
Description
This macro is used to initialize a variable argument list pointer (va_list) to the start of a variable argument list.
va_arg
Definition
#define va_arg(ap,t)
        (*(t *)((ap += \
        ((sizeof(t) + sizeof(int) - 1) &
        ~(sizeof(int) - 1))) - \
        ((sizeof(t) + sizeof(int) - 1) &
        ~(sizeof(int) - 1))))
Description
This macro is used to increment the variable argument list pointer through the list by one entry.
va_end
Definition
#define va_end(ap) (ap = (va_list)0)
Description
This macro is used to set a variable argument list pointer to NULL after it is used.
© 20072025 XoaX.net LLC. All rights reserved.