146035553Spatrick// -*- C++ -*- 2*4bdff4beSrobert//===----------------------------------------------------------------------===// 346035553Spatrick// 446035553Spatrick// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 546035553Spatrick// See https://llvm.org/LICENSE.txt for license information. 646035553Spatrick// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 746035553Spatrick// 846035553Spatrick//===----------------------------------------------------------------------===// 946035553Spatrick 1046035553Spatrick#ifndef _LIBCPP_CSTDARG 1146035553Spatrick#define _LIBCPP_CSTDARG 1246035553Spatrick 1346035553Spatrick/* 1446035553Spatrick cstdarg synopsis 1546035553Spatrick 1646035553SpatrickMacros: 1746035553Spatrick 1846035553Spatrick type va_arg(va_list ap, type); 1946035553Spatrick void va_copy(va_list dest, va_list src); // C99 2046035553Spatrick void va_end(va_list ap); 2146035553Spatrick void va_start(va_list ap, parmN); 2246035553Spatrick 2346035553Spatricknamespace std 2446035553Spatrick{ 2546035553Spatrick 2646035553SpatrickTypes: 2746035553Spatrick 2846035553Spatrick va_list 2946035553Spatrick 3046035553Spatrick} // std 3146035553Spatrick 3246035553Spatrick*/ 3346035553Spatrick 34*4bdff4beSrobert#include <__assert> // all public C++ headers provide the assertion handler 3546035553Spatrick#include <__config> 36*4bdff4beSrobert 37*4bdff4beSrobert// <stdarg.h> is not provided by libc++ 38*4bdff4beSrobert#if __has_include(<stdarg.h>) 3946035553Spatrick# include <stdarg.h> 40*4bdff4beSrobert# ifdef _LIBCPP_STDARG_H 41*4bdff4beSrobert# error "If libc++ starts defining <stdarg.h>, the __has_include check should move to libc++'s <stdarg.h>" 42*4bdff4beSrobert# endif 43*4bdff4beSrobert#endif 4446035553Spatrick 4546035553Spatrick#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 4646035553Spatrick# pragma GCC system_header 4746035553Spatrick#endif 4846035553Spatrick 4946035553Spatrick_LIBCPP_BEGIN_NAMESPACE_STD 5046035553Spatrick 5176d0caaeSpatrickusing ::va_list _LIBCPP_USING_IF_EXISTS; 5246035553Spatrick 5346035553Spatrick_LIBCPP_END_NAMESPACE_STD 5446035553Spatrick 5546035553Spatrick#endif // _LIBCPP_CSTDARG 56