Mercurial > pub > dyncall > dyncall
comparison test/plain_c++/test_main.cc @ 466:ddfb9577a00e
introduced platform-native thiscall mode (DC_CALL_C_DEFAULT_THIS), as needed
for upcoming aggregate support (until now only x86 platforms allowed for
specifically selecting thiscall mode, given the different conventions on
the same platform); also added respective DC_SIGCHAR_CC_THISCALL ('*')
author | Tassilo Philipp |
---|---|
date | Wed, 02 Feb 2022 18:30:44 +0100 |
parents | da4b267c10bf |
children | 71c884e610f0 |
comparison
equal
deleted
inserted
replaced
465:e2899b4ff713 | 466:ddfb9577a00e |
---|---|
288 | 288 |
289 int testCallThisC() | 289 int testCallThisC() |
290 { | 290 { |
291 bool r = false; | 291 bool r = false; |
292 DCCallVM* pc = dcNewCallVM(4096); | 292 DCCallVM* pc = dcNewCallVM(4096); |
293 dcMode(pc, DC_CALL_C_DEFAULT_THIS); | |
293 dcReset(pc); | 294 dcReset(pc); |
294 if(setjmp(jbuf) != 0) | 295 if(setjmp(jbuf) != 0) |
295 printf("sigsegv\n"); | 296 printf("sigsegv\n"); |
296 else | 297 else |
297 r = testCallValue<Value>(pc, "c"); | 298 r = testCallValue<Value>(pc, "c"); |