diff dyncall/dyncall_callvm_x64.c @ 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 ad5f9803f52f
children 71c884e610f0
line wrap: on
line diff
--- a/dyncall/dyncall_callvm_x64.c	Wed Feb 02 12:55:23 2022 +0100
+++ b/dyncall/dyncall_callvm_x64.c	Wed Feb 02 18:30:44 2022 +0100
@@ -255,6 +255,7 @@
 
   switch(mode) {
     case DC_CALL_C_DEFAULT:
+	case DC_CALL_C_DEFAULT_THIS:
 #if defined(DC_UNIX)
     case DC_CALL_C_X64_SYSV:
 #else
@@ -265,12 +266,12 @@
       vt = &gVT_x64;
       break;
     case DC_CALL_SYS_DEFAULT:
-# if defined DC_UNIX
+#if defined(DC_UNIX)
     case DC_CALL_SYS_X64_SYSCALL_SYSV:
       vt = &gVT_x64_syscall_sysv; break;
-# else
+#else
       self->mInterface.mError = DC_ERROR_UNSUPPORTED_MODE; return;
-# endif
+#endif
     default:
       self->mInterface.mError = DC_ERROR_UNSUPPORTED_MODE; 
       return;