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

@ -25,12 +25,13 @@ type
ccInline, # proc should be inlined
ccNoInline, # proc should not be inlined
ccFastCall, # fastcall (pass parameters in registers)
ccThisCall, # thiscall (parameters are pushed right-to-left)
ccClosure, # proc has a closure
ccNoConvention # needed for generating proper C procs sometimes
const
CallingConvToStr*: array[TCallingConvention, string] = ["", "stdcall",
"cdecl", "safecall", "syscall", "inline", "noinline", "fastcall",
"cdecl", "safecall", "syscall", "inline", "noinline", "fastcall", "thiscall",
"closure", "noconv"]
type