| // Copyright 2026 The IREE Authors | |
| // | |
| // Licensed under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // Freestanding <stdarg.h> for wasm32. | |
| #ifndef IREE_WASM_LIBC_STDARG_H_ | |
| #define IREE_WASM_LIBC_STDARG_H_ | |
| typedef __builtin_va_list va_list; | |
| #define va_start(ap, param) __builtin_va_start(ap, param) | |
| #define va_end(ap) __builtin_va_end(ap) | |
| #define va_arg(ap, type) __builtin_va_arg(ap, type) | |
| #define va_copy(dest, src) __builtin_va_copy(dest, src) | |
| #endif // IREE_WASM_LIBC_STDARG_H_ |