Mercurial > pub > dyncall > dyncall
comparison test/plain_c++/test_main.cc @ 348:da4b267c10bf r1.1-RC3
- test code fixes and cleanups for win 32
author | Tassilo Philipp |
---|---|
date | Wed, 08 Jan 2020 17:23:24 +0100 |
parents | dd78bd0152af |
children | ddfb9577a00e |
comparison
equal
deleted
inserted
replaced
347:a2a42f477662 | 348:da4b267c10bf |
---|---|
265 | 265 |
266 return r; | 266 return r; |
267 } | 267 } |
268 | 268 |
269 | 269 |
270 #ifdef DC__OS_Win32 | 270 #if defined(DC__OS_Win32) |
271 | 271 |
272 int testCallThisMS() | 272 int testCallThisMS() |
273 { | 273 { |
274 bool r = false; | 274 bool r = false; |
275 DCCallVM* pc = dcNewCallVM(4096); | 275 DCCallVM* pc = dcNewCallVM(4096); |
309 signal(SIGSEGV, segv_handler); | 309 signal(SIGSEGV, segv_handler); |
310 | 310 |
311 bool r = true; | 311 bool r = true; |
312 | 312 |
313 r = testCallThisC() && r; | 313 r = testCallThisC() && r; |
314 #if defined(DC__C_MSVC) | 314 #if defined(DC__OS_Win32) |
315 r = testCallThisMS() && r; | 315 r = testCallThisMS() && r; |
316 #endif | 316 #endif |
317 | 317 |
318 printf("result: plain_cpp: %d\n", r); | 318 printf("result: plain_cpp: %d\n", r); |
319 | 319 |