Add thiscall calling convention, mostly for hooking purpose (#14466)

* Add thiscall calling convention, mostly for hooking purpose
* add changelog and documentation
This commit is contained in:
Huy Doan 2020-05-27 21:24:47 +07:00 • committed by GitHub
commit 00fa7a5747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 4 deletions

View file

@ -1917,6 +1917,10 @@ Nim supports these `calling conventions`:idx:\:
Fastcall means different things to different C compilers. One gets whatever
the C ``__fastcall`` means.
`thiscall`:idx:
This is thiscall calling convention as specified by Microsoft, used on C++
class member functions on the x86 architecture
`syscall`:idx:
The syscall convention is the same as ``__syscall`` in C. It is used for
interrupts.