1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-01 05:41:31 +00:00
8bitworkshop/src/worker/lib/vectrex/stdarg.h
2020-06-09 13:11:37 -05:00

23 lines
498 B
C

/* 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_ */