Mercurial > pub > dyncall > dyncall
comparison test/suite_x86win32std/main.cc @ 413:d73dc7ad37e4
- fix nameclash due to a previous and bad cleanup
author | Tassilo Philipp |
---|---|
date | Thu, 07 Oct 2021 11:29:36 +0200 |
parents | 7608e34098b0 |
children | 0f40e13a2f0a |
comparison
equal
deleted
inserted
replaced
412:beb15f1065e6 | 413:d73dc7ad37e4 |
---|---|
98 | 98 |
99 | 99 |
100 #define test(x) if (!(x)) return false | 100 #define test(x) if (!(x)) return false |
101 | 101 |
102 | 102 |
103 bool test(int x) | 103 bool test_case(int x) |
104 { | 104 { |
105 clearValues(); | 105 clearValues(); |
106 | 106 |
107 DCCallVM* pCall = dcNewCallVM(4096); | 107 DCCallVM* pCall = dcNewCallVM(4096); |
108 dcMode(pCall, DC_CALL_C_X86_WIN32_STD); | 108 dcMode(pCall, DC_CALL_C_X86_WIN32_STD); |
142 bool run_range(int from, int to) | 142 bool run_range(int from, int to) |
143 { | 143 { |
144 bool tr = true; | 144 bool tr = true; |
145 for (int i = from ; i < to ; ++i ) { | 145 for (int i = from ; i < to ; ++i ) { |
146 printf("%d:",i); | 146 printf("%d:",i); |
147 bool r = test(i); | 147 bool r = test_case(i); |
148 printf("%d\n", r); | 148 printf("%d\n", r); |
149 tr &= r; | 149 tr &= r; |
150 } | 150 } |
151 return tr; | 151 return tr; |
152 } | 152 } |