diff options
author | pommicket <pommicket@gmail.com> | 2022-02-17 13:22:13 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-02-17 13:22:13 -0500 |
commit | e900dd8d6f2ff7cef66fbd31898d375b71ef53d6 (patch) | |
tree | ae732e8f5d6163acb78355ae4e5ca69d6e0c995e /05/tcc-0.9.25/stdarg.h | |
parent | 6e1158f49aa014b801b171b358c47389e7f9964e (diff) |
procuding a (non-working) executable for tcc
Diffstat (limited to '05/tcc-0.9.25/stdarg.h')
-rw-r--r-- | 05/tcc-0.9.25/stdarg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/05/tcc-0.9.25/stdarg.h b/05/tcc-0.9.25/stdarg.h new file mode 100644 index 0000000..4df996f --- /dev/null +++ b/05/tcc-0.9.25/stdarg.h @@ -0,0 +1,10 @@ +#ifndef _STDARG_H +#define _STDARG_H + +typedef unsigned long va_list; + +#define va_start(list, arg) ((list) = (unsigned long)&arg) +#define va_arg(list, type) (*((type *)(list += ((sizeof(type) + 7) & 0xfffffffffffffff8)))) +#define va_end(list) + +#endif // _STDARG_H |