mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
Start work on a standard C library. I'm calling it... LibC.
This commit is contained in:
parent
85bcf2ed0f
commit
4cbf079a17
Notes:
sideshowbarker
2024-07-19 18:45:16 +09:00
Author: https://github.com/awesomekling
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