Added stdarg.h

This commit is contained in:
2024-08-26 21:15:35 +02:00
parent 2ca858465c
commit f79603c778
3 changed files with 18 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
#ifndef STDARG_H
#define STDARG_H
typedef char* va_list;
#define va_start(ap, paramn) (void)((ap) = (char*)(&(paramn) + 1))
#define va_end(ap) (void)((ap) = 0)
#define va_arg(ap, type) (((type*)((ap) = ((ap) + sizeof(type))))[-1])
#endif