1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-12 03:29:31 +00:00
8bitworkshop/src/worker/lib/williams/stdarg.h

23 lines
498 B
C
Raw Normal View History

2022-02-18 17:53:33 +00:00
/* stdarg.h - Support for variable argument functions
By Pierre Sarrazin <http://sarrazip.com/>.
This file is in the public domain.
*/
#ifndef _stdarg_h_
#define _stdarg_h_
typedef char *va_list;
char *__va_arg(va_list *app, unsigned int sizeInBytes);
#define va_start(ap, lastFixed) do { (ap) = (char *) &(lastFixed) + sizeof(lastFixed); } while (0)
#define va_arg(ap, type) (* (type *) __va_arg(&(ap), sizeof(type)))
#define va_end(ap) do {} while (0)
#endif /* _stdarg_h_ */