summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorHuy Doan <106477+ba0f3@users.noreply.github.com>2020-05-27 21:24:47 +0700
committerGitHub <noreply@github.com>2020-05-27 16:24:47 +0200
commit00fa7a57476ed6fe81fb2d9171ba902fad9b83d5 (patch)
treead0e3d12e7179d182839bc2d8c5fa999c7f2db9b /lib
parentcc65ae6011eeb7f85726e6eebfc8dee922ad3451 (diff)
downloadNim-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.h2
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