aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-16 16:03:49 +0000
committergingerBill <bill@gingerbill.org>2022-02-16 16:03:49 +0000
commitdb6bd9b358f17c0259ff5fe6411ce93407613338 (patch)
tree54b7e06a4bee7fcc1813616a5bcb9df11da6d6a5 /src/parser.hpp
parent42ad54c28ee013618c7ee0039bbe1ce5dd1f0ba6 (diff)
Allow sysv and win64 calling conventions to be used on any platform on amd64
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index ff0df0382..9e93f4b26 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -249,12 +249,30 @@ enum ProcCallingConvention : i32 {
ProcCC_InlineAsm = 8,
+ ProcCC_Win64 = 9,
+ ProcCC_SysV = 10,
+
+
ProcCC_MAX,
ProcCC_ForeignBlockDefault = -1,
};
+char const *proc_calling_convention_strings[ProcCC_MAX] = {
+ "",
+ "odin",
+ "contextless",
+ "cdecl",
+ "stdcall",
+ "fastcall",
+ "none",
+ "naked",
+ "inlineasm",
+ "win64",
+ "sysv",
+};
+
ProcCallingConvention default_calling_convention(void) {
return ProcCC_Odin;
}