Make default calling convention code more correct to read

This commit is contained in:
gingerBill
2021-06-08 14:33:49 +01:00
parent 76bb82a726
commit f19bb0f4d4
5 changed files with 31 additions and 16 deletions

View File

@@ -208,18 +208,18 @@ enum ProcTag {
ProcTag_optional_second = 1<<6,
};
enum ProcCallingConvention {
ProcCC_Invalid = 0,
ProcCC_Odin = 1,
enum ProcCallingConvention : i32 {
ProcCC_Invalid = 0,
ProcCC_Odin = 1,
ProcCC_Contextless = 2,
ProcCC_CDecl = 3,
ProcCC_StdCall = 4,
ProcCC_FastCall = 5,
ProcCC_CDecl = 3,
ProcCC_StdCall = 4,
ProcCC_FastCall = 5,
ProcCC_None = 6,
ProcCC_Naked = 7,
ProcCC_None = 6,
ProcCC_Naked = 7,
ProcCC_InlineAsm = 8,
ProcCC_InlineAsm = 8,
ProcCC_MAX,
@@ -227,6 +227,10 @@ enum ProcCallingConvention {
ProcCC_ForeignBlockDefault = -1,
};
ProcCallingConvention default_calling_convention(void) {
return ProcCC_Odin;
}
enum StateFlag : u16 {
StateFlag_bounds_check = 1<<0,
StateFlag_no_bounds_check = 1<<1,