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
6
typedef
struct
__va_list_struct
{
7
char
gpr
;
8
char
fpr
;
9
char
reserved
[2];
10
char
*
input_arg_area
;
11
char
*
reg_save_area
;
12
}
_va_list_struct
;
13
14
typedef
_va_list_struct
__va_list
[1];
15
16
#ifdef __cplusplus
17
extern
"C"
void
*
__va_arg
(
_va_list_struct
*,
int
);
18
#else
19
void
*
__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 */
__va_arg
void * __va_arg(_va_list_struct *, int)
Definition
__va_arg.c:6
__va_list
_va_list_struct __va_list[1]
Definition
__va_arg.h:14
_va_list_struct
struct __va_list_struct _va_list_struct
__va_list_struct
Definition
__va_arg.h:6
__va_list_struct::fpr
char fpr
Definition
__va_arg.h:8
__va_list_struct::input_arg_area
char * input_arg_area
Definition
__va_arg.h:10
__va_list_struct::reg_save_area
char * reg_save_area
Definition
__va_arg.h:11
__va_list_struct::reserved
char reserved[2]
Definition
__va_arg.h:9
__va_list_struct::gpr
char gpr
Definition
__va_arg.h:7
types.h
src
PowerPC_EABI_Support
Runtime
Inc
__va_arg.h
Generated by
1.9.8