blob: 724ffb59d57ebb01dd16c6450325ac489a6fadd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#pragma once
#include <sys/cdefs.h>
__BEGIN_DECLS
typedef char* va_list;
#define va_start(ap, v) ap = (va_list)&v + sizeof(v)
#define va_arg(ap, t) ((t*)(ap += sizeof(t)))[-1]
#define va_end(ap) ap = nullptr
__END_DECLS
|