mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
Start work on a standard C library. I'm calling it... LibC.
This commit is contained in:
parent
85bcf2ed0f
commit
4cbf079a17
8 changed files with 311 additions and 0 deletions
12
LibC/stdarg.h
Normal file
12
LibC/stdarg.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
extern "C" {
|
||||
|
||||
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
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue