22#define __ASM_VTABLE(name,funcs)
26#define VTABLE_ADD_FUNC(name) "\t.quad " THISCALL_NAME(name) "\n"
28#define __ASM_VTABLE(name,funcs) \
31 "\t.quad " __ASM_NAME(#name "_rtti") "\n" \
32 "\t.globl " __ASM_NAME("MSVCRT_" #name "_vtable") "\n" \
33 __ASM_NAME("MSVCRT_" #name "_vtable") ":\n" \
38#define VTABLE_ADD_FUNC(name) "\t.long " THISCALL_NAME(name) "\n"
40#define __ASM_VTABLE(name,funcs) \
43 "\t.long " __ASM_NAME(#name "_rtti") "\n" \
44 "\t.globl " __ASM_NAME("MSVCRT_" #name "_vtable") "\n" \
45 __ASM_NAME("MSVCRT_" #name "_vtable") ":\n" \
53#define DEFINE_RTTI_DATA(name, off, base_classes_no, cl1, cl2, cl3, cl4, cl5, cl6, cl7, cl8, cl9, mangled_name) \
54 static type_info name ## _type_info = { \
55 &MSVCRT_type_info_vtable, \
60static const rtti_base_descriptor name ## _rtti_base_descriptor = { \
67static const rtti_base_array name ## _rtti_base_array = { \
69 &name ## _rtti_base_descriptor, \
82static const rtti_object_hierarchy name ## _hierarchy = { \
86 &name ## _rtti_base_array \
89const rtti_object_locator name ## _rtti = { \
93 &name ## _type_info, \
99#define DEFINE_RTTI_DATA(name, off, base_classes_no, cl1, cl2, cl3, cl4, cl5, cl6, cl7, cl8, cl9, mangled_name) \
100 static type_info name ## _type_info = { \
101 &MSVCRT_type_info_vtable, \
106static rtti_base_descriptor name ## _rtti_base_descriptor = { \
113static rtti_base_array name ## _rtti_base_array = { \
128static rtti_object_hierarchy name ## _hierarchy = { \
135rtti_object_locator name ## _rtti = { \
144static void init_ ## name ## _rtti(char *base) \
146 name ## _rtti_base_descriptor.type_descriptor = (char*)&name ## _type_info - base; \
147 name ## _rtti_base_array.bases[0] = (char*)&name ## _rtti_base_descriptor - base; \
148 name ## _rtti_base_array.bases[1] = (char*)cl1 - base; \
149 name ## _rtti_base_array.bases[2] = (char*)cl2 - base; \
150 name ## _rtti_base_array.bases[3] = (char*)cl3 - base; \
151 name ## _rtti_base_array.bases[4] = (char*)cl4 - base; \
152 name ## _rtti_base_array.bases[5] = (char*)cl5 - base; \
153 name ## _rtti_base_array.bases[6] = (char*)cl6 - base; \
154 name ## _rtti_base_array.bases[7] = (char*)cl7 - base; \
155 name ## _rtti_base_array.bases[8] = (char*)cl8 - base; \
156 name ## _rtti_base_array.bases[9] = (char*)cl9 - base; \
157 name ## _hierarchy.base_classes = (char*)&name ## _rtti_base_array - base; \
158 name ## _rtti.type_descriptor = (char*)&name ## _type_info - base; \
159 name ## _rtti.type_hierarchy = (char*)&name ## _hierarchy - base; \
160 name ## _rtti.object_locator = (char*)&name ## _rtti - base; \
165#define DEFINE_RTTI_DATA0(name, off, mangled_name) \
166 DEFINE_RTTI_DATA(name, off, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, mangled_name)
167#define DEFINE_RTTI_DATA1(name, off, cl1, mangled_name) \
168 DEFINE_RTTI_DATA(name, off, 1, cl1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, mangled_name)
169#define DEFINE_RTTI_DATA2(name, off, cl1, cl2, mangled_name) \
170 DEFINE_RTTI_DATA(name, off, 2, cl1, cl2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, mangled_name)
171#define DEFINE_RTTI_DATA3(name, off, cl1, cl2, cl3, mangled_name) \
172 DEFINE_RTTI_DATA(name, off, 3, cl1, cl2, cl3, NULL, NULL, NULL, NULL, NULL, NULL, mangled_name)
173#define DEFINE_RTTI_DATA4(name, off, cl1, cl2, cl3, cl4, mangled_name) \
174 DEFINE_RTTI_DATA(name, off, 4, cl1, cl2, cl3, cl4, NULL, NULL, NULL, NULL, NULL, mangled_name)
175#define DEFINE_RTTI_DATA8(name, off, cl1, cl2, cl3, cl4, cl5, cl6, cl7, cl8, mangled_name) \
176 DEFINE_RTTI_DATA(name, off, 8, cl1, cl2, cl3, cl4, cl5, cl6, cl7, cl8, NULL, mangled_name)
177#define DEFINE_RTTI_DATA9(name, off, cl1, cl2, cl3, cl4, cl5, cl6, cl7, cl8, cl9, mangled_name) \
178 DEFINE_RTTI_DATA(name, off, 9, cl1, cl2, cl3, cl4, cl5, cl6, cl7, cl8, cl9, mangled_name)
216 unsigned int type_descriptor;
217 int num_base_classes;
219 unsigned int attributes;
224 unsigned int bases[10];
230 unsigned int attributes;
232 unsigned int base_classes;
238 int base_class_offset;
240 unsigned int type_descriptor;
241 unsigned int type_hierarchy;
242 unsigned int object_locator;
247#if defined(__i386__) && !defined(__MINGW32__)
249#define CALL_VTBL_FUNC(this, off, ret, type, args) ((ret (WINAPI*)type)&vtbl_wrapper_##off)args
251extern void *vtbl_wrapper_0;
252extern void *vtbl_wrapper_4;
253extern void *vtbl_wrapper_8;
254extern void *vtbl_wrapper_12;
255extern void *vtbl_wrapper_16;
256extern void *vtbl_wrapper_20;
257extern void *vtbl_wrapper_24;
258extern void *vtbl_wrapper_28;
259extern void *vtbl_wrapper_32;
260extern void *vtbl_wrapper_36;
261extern void *vtbl_wrapper_40;
262extern void *vtbl_wrapper_44;
263extern void *vtbl_wrapper_48;
267#define CALL_VTBL_FUNC(this, off, ret, type, args) ((ret (__thiscall***)type)this)[0][off/4]args
exception *__thiscall MSVCRT_exception_ctor(exception *, const char **)
struct _rtti_base_array rtti_base_array
struct _rtti_object_locator rtti_object_locator
struct _rtti_object_hierarchy rtti_object_hierarchy
struct _rtti_base_descriptor rtti_base_descriptor
static const FxOffsetAndName offsets[]
const rtti_base_descriptor * bases[10]
const type_info * type_descriptor
const rtti_base_array * base_classes
const type_info * type_descriptor
const rtti_object_hierarchy * type_hierarchy