[SDK:CRT] Implement stdarg.h

This commit is contained in:
Quinn Stephens 2024-08-09 08:31:35 -04:00
parent b57dcc8078
commit 7af18b7ac3

36
SDK/INC/CRT/stdarg.h Normal file
View File

@ -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 */