matos/userspace/stdarg.h

8 lines
243 B
C
Raw Permalink Normal View History

2021-11-05 23:02:23 +01:00
#pragma once
2024-01-29 23:27:10 +01:00
//__builtin_va_list could be used instead
2021-11-13 08:31:05 +01:00
typedef char *va_list;
2021-11-05 23:02:23 +01:00
#define va_start(v, l) ((v) = (va_list) & (l) + sizeof(l))
#define va_end(v) ((v) = NULL)
#define va_arg(v, type) (*(type *)(((v) += sizeof(type)) - sizeof(type)))