mirror of
https://github.com/frida/tinycc
synced 2024-12-25 22:46:49 +03:00
added va_copy()
This commit is contained in:
parent
8b0c4c6582
commit
84f4e99635
1
stdarg.h
1
stdarg.h
@ -6,6 +6,7 @@ typedef char *va_list;
|
|||||||
/* only correct for i386 */
|
/* only correct for i386 */
|
||||||
#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
|
#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
|
||||||
#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
|
#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
|
||||||
|
#define va_copy(dest, src) (dest) = (src)
|
||||||
#define va_end(ap)
|
#define va_end(ap)
|
||||||
|
|
||||||
/* fix a buggy dependency on GCC in libio.h */
|
/* fix a buggy dependency on GCC in libio.h */
|
||||||
|
Loading…
Reference in New Issue
Block a user