stdarg.h 572 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _WAMR_LIBC_STDARG_H
  6. #define _WAMR_LIBC_STDARG_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #ifndef _VA_LIST
  11. typedef __builtin_va_list va_list;
  12. #define _VA_LIST
  13. #endif
  14. #define va_start(ap, param) __builtin_va_start(ap, param)
  15. #define va_end(ap) __builtin_va_end(ap)
  16. #define va_arg(ap, type) __builtin_va_arg(ap, type)
  17. #define __va_copy(d, s) __builtin_va_copy(d, s)
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /* end of _WAMR_LIBC_STDARG_H */