Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
__va_arg.h
Go to the documentation of this file.
1#ifndef __VA_ARG_H
2#define __VA_ARG_H
3
4#include "dolphin/types.h"
5
6typedef struct __va_list_struct {
7 char gpr;
8 char fpr;
9 char reserved[2];
13
15
16#ifdef __cplusplus
17extern "C" void* __va_arg(_va_list_struct*, int);
18#else
19void* __va_arg(_va_list_struct*, int);
20#endif
21
22#ifndef __MWERKS__
23#define __builtin_va_info(...)
24#define _var_arg_typeof(...)
25#endif
26
27// from defined-string in mwcceppc.exe:
28// __builtin_va_info: initialize the __va_list_struct
29// _var_arg_typeof: convert type to integer for __va_arg
30#define __va_start(list, fmt) __builtin_va_info(&list)
31#define __va_arg(list, type) (*((type*)__va_arg(list, _var_arg_typeof(type))))
32#define va_start __va_start
33#define va_arg __va_arg
34#define va_end __va_end
35#define va_list __va_list
36#define __va_end(list) ((void)0)
37
38#define __va_copy(a, b) (*(a) = *(b))
39
40#endif /* __VA_ARG_H */
void * __va_arg(_va_list_struct *, int)
Definition __va_arg.c:6
_va_list_struct __va_list[1]
Definition __va_arg.h:14
struct __va_list_struct _va_list_struct
Definition __va_arg.h:6
char fpr
Definition __va_arg.h:8
char * input_arg_area
Definition __va_arg.h:10
char * reg_save_area
Definition __va_arg.h:11
char reserved[2]
Definition __va_arg.h:9
char gpr
Definition __va_arg.h:7