Mercurial > pub > dyncall > dyncall
diff dyncall/dyncall_callvm_arm32_arm_armhf.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_arm32_arm_armhf.c Wed Feb 02 12:55:23 2022 +0100 +++ b/dyncall/dyncall_callvm_arm32_arm_armhf.c Wed Feb 02 18:30:44 2022 +0100 @@ -6,7 +6,7 @@ Description: ARM 'armhf' ABI implementation License: - Copyright (c) 2007-2020 Daniel Adler <dadler@uni-goettingen.de>, + Copyright (c) 2007-2020 Daniel Adler <dadler@uni-goettingen.de>, Tassilo Philipp <tphilipp@potion-studios.com> Permission to use, copy, modify, and distribute this software for any @@ -28,8 +28,8 @@ #include "dyncall_alloc.h" -/* -** arm32 armhf mode calling convention calls +/* +** arm32 armhf mode calling convention calls ** ** - hybrid return-type call (bool ... pointer) ** @@ -211,6 +211,7 @@ switch(mode) { case DC_CALL_C_DEFAULT: + case DC_CALL_C_DEFAULT_THIS: case DC_CALL_C_ARM_ARMHF: vt = &vt_armhf; break; @@ -219,7 +220,7 @@ vt = &vt_armhf_ellipsis; break; default: - self->mInterface.mError = DC_ERROR_UNSUPPORTED_MODE; + self->mInterface.mError = DC_ERROR_UNSUPPORTED_MODE; return; } dc_callvm_base_init(&self->mInterface, vt);