1 /*===---- stdarg.h - Variable argument handling ----------------------------===
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 *===-----------------------------------------------------------------------===
14 typedef __builtin_va_list
va_list;
17 #define va_start(ap, param) __builtin_va_start(ap, param)
18 #define va_end(ap) __builtin_va_end(ap)
19 #define va_arg(ap, type) __builtin_va_arg(ap, type)
21 /* GCC always defines __va_copy, but does not define va_copy unless in c99 mode
22 * or -ansi is not specified, since it was not part of C90.
24 #define __va_copy(d,s) __builtin_va_copy(d,s)
26 #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
27 (defined(__cplusplus) && __cplusplus >= 201103L) || \
28 !defined(__STRICT_ANSI__)
29 #define va_copy(dest, src) __builtin_va_copy(dest, src)
32 #ifndef __GNUC_VA_LIST
33 #define __GNUC_VA_LIST 1
34 typedef __builtin_va_list __gnuc_va_list
;
37 #endif /* __STDARG_H */