diff options
author | Huy Doan <106477+ba0f3@users.noreply.github.com> | 2020-05-27 21:24:47 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 16:24:47 +0200 |
commit | 00fa7a57476ed6fe81fb2d9171ba902fad9b83d5 (patch) | |
tree | ad0e3d12e7179d182839bc2d8c5fa999c7f2db9b /lib | |
parent | cc65ae6011eeb7f85726e6eebfc8dee922ad3451 (diff) | |
download | Nim-00fa7a57476ed6fe81fb2d9171ba902fad9b83d5.tar.gz |
Add thiscall calling convention, mostly for hooking purpose (#14466)
* Add thiscall calling convention, mostly for hooking purpose * add changelog and documentation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nimbase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h index 0b0188b55..e43492b76 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -173,12 +173,14 @@ __AVR__ # define N_STDCALL(rettype, name) rettype __stdcall name # define N_SYSCALL(rettype, name) rettype __syscall name # define N_FASTCALL(rettype, name) rettype __fastcall name +# define N_THISCALL(rettype, name) rettype __thiscall name # define N_SAFECALL(rettype, name) rettype __stdcall name /* function pointers with calling convention: */ # define N_CDECL_PTR(rettype, name) rettype (__cdecl *name) # define N_STDCALL_PTR(rettype, name) rettype (__stdcall *name) # define N_SYSCALL_PTR(rettype, name) rettype (__syscall *name) # define N_FASTCALL_PTR(rettype, name) rettype (__fastcall *name) +# define N_THISCALL_PTR(rettype, name) rettype (__thiscall *name) # define N_SAFECALL_PTR(rettype, name) rettype (__stdcall *name) # ifdef __cplusplus |