Mercurial > pub > dyncall > dyncall
comparison test/suite_x86win32fast/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 |
---|---|
99 | 99 |
100 | 100 |
101 #define test(x) if (!(x)) return false | 101 #define test(x) if (!(x)) return false |
102 | 102 |
103 | 103 |
104 bool test(int x) | 104 bool test_case(int x) |
105 { | 105 { |
106 clearValues(); | 106 clearValues(); |
107 | 107 |
108 DCCallVM* pCall = dcNewCallVM(4096); | 108 DCCallVM* pCall = dcNewCallVM(4096); |
109 #ifdef DC__C_GNU | 109 #ifdef DC__C_GNU |
148 bool run_range(int from, int to) | 148 bool run_range(int from, int to) |
149 { | 149 { |
150 bool tr = true; | 150 bool tr = true; |
151 for (int i = from ; i < to ; ++i ) { | 151 for (int i = from ; i < to ; ++i ) { |
152 printf("%d:",i); | 152 printf("%d:",i); |
153 bool r = test(i); | 153 bool r = test_case(i); |
154 printf("%d\n", r); | 154 printf("%d\n", r); |
155 tr &= r; | 155 tr &= r; |
156 } | 156 } |
157 return tr; | 157 return tr; |
158 } | 158 } |