00001 /* ndk - [ stdarg.h ] 00002 * 00003 * Contains partial libc stdarg implementation 00004 * 00005 * (c)2005 dcipher / neuraldk 00006 * www.neuraldk.org 00007 */ 00008 00009 #ifndef __ndk_stdarg_h__ 00010 #define __ndk_stdarg_h__ 00011 00012 typedef void **va_list; 00013 00014 #define va_start(ap, last) \ 00015 ap = (void**)&last; \ 00016 ap++; 00017 00018 #define va_arg(ap, type) \ 00019 (type)*ap++; 00020 00021 #define va_end(ap) \ 00022 ap = 0; 00023 00024 #define va_copy(dest, src) \ 00025 dest = src; 00026 00027 #endif