[MSVCRT] Fix export of __uncaught_exception
[reactos.git] / reactos / dll / win32 / mshtml / msvc.S
1
2 #include <asm.inc>
3
4 .code
5
6 MACRO(DEFINE_WRAPPER_FUNC, n, off, x)
7 #ifdef _M_IX86
8 PUBLIC _wrapper_func_&n&
9 _wrapper_func_&n&:
10 mov eax, [esp+4]
11 mov eax, [eax+4]
12 mov [esp+4], eax
13 mov eax, [eax]
14 jmp dword ptr [eax+off]
15 #elif defined(_M_AMD64)
16 PUBLIC wrapper_func_&n&
17 wrapper_func_&n&:
18 mov rcx, [rcx+4]
19 mov rax, [rcx]
20 jmp qword ptr [rax+off]
21 #else
22 #error Unimplemented
23 #endif
24 ENDM
25
26 DEFINE_WRAPPER_FUNC 3, 12, 24
27 DEFINE_WRAPPER_FUNC 4, 16, 32
28 DEFINE_WRAPPER_FUNC 5, 20, 40
29 DEFINE_WRAPPER_FUNC 6, 24, 48
30 DEFINE_WRAPPER_FUNC 7, 28, 56
31 DEFINE_WRAPPER_FUNC 8, 32, 64
32 DEFINE_WRAPPER_FUNC 9, 36, 72
33 DEFINE_WRAPPER_FUNC 10, 40, 80
34 DEFINE_WRAPPER_FUNC 11, 44, 88
35 DEFINE_WRAPPER_FUNC 12, 48, 96
36 DEFINE_WRAPPER_FUNC 13, 52, 104
37 DEFINE_WRAPPER_FUNC 14, 56, 112
38 DEFINE_WRAPPER_FUNC 15, 60, 120
39 DEFINE_WRAPPER_FUNC 16, 64, 128
40 DEFINE_WRAPPER_FUNC 17, 68, 136
41 DEFINE_WRAPPER_FUNC 18, 72, 144
42 DEFINE_WRAPPER_FUNC 19, 76, 152
43 DEFINE_WRAPPER_FUNC 20, 80, 160
44 DEFINE_WRAPPER_FUNC 21, 84, 168
45 DEFINE_WRAPPER_FUNC 22, 88, 176
46 DEFINE_WRAPPER_FUNC 23, 92, 184
47 DEFINE_WRAPPER_FUNC 24, 96, 192
48 DEFINE_WRAPPER_FUNC 25, 100, 200
49 DEFINE_WRAPPER_FUNC 26, 104, 208
50 DEFINE_WRAPPER_FUNC 27, 108, 216
51 DEFINE_WRAPPER_FUNC 28, 112, 224
52 DEFINE_WRAPPER_FUNC 29, 116, 232
53 DEFINE_WRAPPER_FUNC 30, 120, 240
54 DEFINE_WRAPPER_FUNC 31, 124, 248
55 DEFINE_WRAPPER_FUNC 32, 128, 256
56 DEFINE_WRAPPER_FUNC 33, 132, 264
57 DEFINE_WRAPPER_FUNC 34, 136, 272
58 DEFINE_WRAPPER_FUNC 35, 140, 280
59 DEFINE_WRAPPER_FUNC 36, 144, 288
60 DEFINE_WRAPPER_FUNC 37, 148, 296
61 DEFINE_WRAPPER_FUNC 38, 152, 304
62 DEFINE_WRAPPER_FUNC 39, 156, 312
63 DEFINE_WRAPPER_FUNC 40, 160, 320
64 DEFINE_WRAPPER_FUNC 41, 164, 328
65 DEFINE_WRAPPER_FUNC 42, 168, 336
66 DEFINE_WRAPPER_FUNC 43, 172, 344
67 DEFINE_WRAPPER_FUNC 44, 176, 352
68 DEFINE_WRAPPER_FUNC 45, 180, 360
69 DEFINE_WRAPPER_FUNC 46, 184, 368
70 DEFINE_WRAPPER_FUNC 47, 188, 376
71 DEFINE_WRAPPER_FUNC 48, 192, 384
72 DEFINE_WRAPPER_FUNC 49, 196, 392
73 DEFINE_WRAPPER_FUNC 50, 200, 400
74 DEFINE_WRAPPER_FUNC 51, 204, 408
75 DEFINE_WRAPPER_FUNC 52, 208, 416
76 DEFINE_WRAPPER_FUNC 53, 212, 424
77 DEFINE_WRAPPER_FUNC 54, 216, 432
78 DEFINE_WRAPPER_FUNC 55, 220, 440
79 DEFINE_WRAPPER_FUNC 56, 224, 448
80 DEFINE_WRAPPER_FUNC 57, 228, 456
81 DEFINE_WRAPPER_FUNC 58, 232, 464
82 DEFINE_WRAPPER_FUNC 59, 236, 472
83 DEFINE_WRAPPER_FUNC 60, 240, 480
84 DEFINE_WRAPPER_FUNC 61, 244, 488
85 DEFINE_WRAPPER_FUNC 62, 248, 496
86 DEFINE_WRAPPER_FUNC 63, 252, 504
87 DEFINE_WRAPPER_FUNC 64, 256, 512
88 DEFINE_WRAPPER_FUNC 65, 260, 520
89 DEFINE_WRAPPER_FUNC 66, 264, 528
90 DEFINE_WRAPPER_FUNC 67, 268, 536
91 DEFINE_WRAPPER_FUNC 68, 272, 544
92 DEFINE_WRAPPER_FUNC 69, 276, 552
93 DEFINE_WRAPPER_FUNC 70, 280, 560
94 DEFINE_WRAPPER_FUNC 71, 284, 568
95 DEFINE_WRAPPER_FUNC 72, 288, 576
96 DEFINE_WRAPPER_FUNC 73, 292, 584
97 DEFINE_WRAPPER_FUNC 74, 296, 592
98 DEFINE_WRAPPER_FUNC 75, 300, 600
99 DEFINE_WRAPPER_FUNC 76, 304, 608
100 DEFINE_WRAPPER_FUNC 77, 308, 616
101 DEFINE_WRAPPER_FUNC 78, 312, 624
102 DEFINE_WRAPPER_FUNC 79, 316, 632
103 DEFINE_WRAPPER_FUNC 80, 320, 640
104 DEFINE_WRAPPER_FUNC 81, 324, 648
105 DEFINE_WRAPPER_FUNC 82, 328, 656
106 DEFINE_WRAPPER_FUNC 83, 332, 664
107 DEFINE_WRAPPER_FUNC 84, 336, 672
108 DEFINE_WRAPPER_FUNC 85, 340, 680
109 DEFINE_WRAPPER_FUNC 86, 344, 688
110 DEFINE_WRAPPER_FUNC 87, 348, 696
111 DEFINE_WRAPPER_FUNC 88, 352, 704
112 DEFINE_WRAPPER_FUNC 89, 356, 712
113 DEFINE_WRAPPER_FUNC 90, 360, 720
114 DEFINE_WRAPPER_FUNC 91, 364, 728
115 DEFINE_WRAPPER_FUNC 92, 368, 736
116 DEFINE_WRAPPER_FUNC 93, 372, 744
117 DEFINE_WRAPPER_FUNC 94, 376, 752
118 DEFINE_WRAPPER_FUNC 95, 380, 760
119 DEFINE_WRAPPER_FUNC 96, 384, 768
120 DEFINE_WRAPPER_FUNC 97, 388, 776
121 DEFINE_WRAPPER_FUNC 98, 392, 784
122 DEFINE_WRAPPER_FUNC 99, 396, 792
123
124 END