Misc comments

This commit is contained in:
rtldg 2025-03-04 07:21:55 +00:00
parent b329d652ac
commit a884302c14
2 changed files with 2 additions and 1 deletions

View File

@ -198,7 +198,7 @@ namespace SourceHook
// The following two flags are only relevant for byval return types.
// SH tries to auto-detect these
// If you want to override SH's auto-detection, pass them in yourself
PassFlag_RetMem = (1<<6), /**< Object is returned in memory (through hidden first param */
PassFlag_RetMem = (1<<6), /**< Object is returned in memory (through hidden first param) */
PassFlag_RetReg = (1<<7) /**< Object is returned in EAX(:EDX)/RAX(x86_64) */
};

View File

@ -14,6 +14,7 @@
// https://defuse.ca/online-x86-assembler.htm
// https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention
// https://refspecs.linuxbase.orgz/elf/x86_64-abi-0.99.pdf
// SystemV AMD64 https://gitlab.com/x86-psABIs/x86-64-ABI/-/jobs/artifacts/master/raw/x86-64-ABI/abi.pdf?job=build
#include <stdio.h>
#include <string>