aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-16 16:04:20 +0000
committergingerBill <bill@gingerbill.org>2022-02-16 16:04:20 +0000
commit8e8a075a2232038eb3a24e2b7b0a0b183d13b89d (patch)
tree281af208f9cdc367ba793991c3242db94a1eb851 /src/parser.hpp
parent65dedbb1caaa785a444d32a7a15adaf6c396b07f (diff)
parentdb6bd9b358f17c0259ff5fe6411ce93407613338 (diff)
Merge branch 'master' into directx-packages
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 fb84210b3..83c755553 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;
}