kern

view src/klibc/stdarg.h @ 65:e49fdda97607

changed the makefile to only pass "emulation" (-m32 -melf_i386) only when not running on a i386 system. Also made that work for freebsd too
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 05 Oct 2011 02:34:58 +0300
parents
children
line source
1 #ifndef STDARG_H_
2 #define STDARG_H_
4 /* Assumes that arguments are passed on the stack 4-byte aligned */
6 typedef int* va_list;
8 #define va_start(ap, last) ((ap) = (int*)&(last) + 1)
9 #define va_arg(ap, type) (*(type*)(ap)++)
10 #define va_end(ap)
12 #endif /* STDARG_H_ */