From 7af18b7ac302c0edf4584f8d54418ac3831d6de1 Mon Sep 17 00:00:00 2001 From: Kaimakan71 Date: Fri, 9 Aug 2024 08:31:35 -0400 Subject: [PATCH] [SDK:CRT] Implement stdarg.h --- SDK/INC/CRT/stdarg.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 SDK/INC/CRT/stdarg.h diff --git a/SDK/INC/CRT/stdarg.h b/SDK/INC/CRT/stdarg.h new file mode 100644 index 0000000..bfa13eb --- /dev/null +++ b/SDK/INC/CRT/stdarg.h @@ -0,0 +1,36 @@ +/*++ + +Copyright (c) 2024, Quinn Stephens. +Provided under the BSD 3-Clause license. + +Module Name: + + stdarg.h + +Abstract: + + Provides variable arguments definitions. + +--*/ + +#pragma once + +#ifndef _STDARG_H +#define _STDARG_H + +#ifdef __cplusplus +extern "C" { +#endif + +typedef __builtin_va_list va_list; + +#define va_start(ap, v) __builtin_va_start(ap, v) +#define va_arg(ap, t) __builtin_va_arg(ap, t) +#define va_copy(ap, s) __builtin_va_copy(ap, s) +#define va_end(ap) __builtin_va_end(ap) + +#ifdef __cplusplus +} +#endif + +#endif /* !_STDARG_H */