mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 01:44:36 +00:00
Make default calling convention code more correct to read
This commit is contained in:
@@ -3618,9 +3618,14 @@ gbString write_type_to_string(gbString str, Type *type) {
|
||||
|
||||
switch (type->Proc.calling_convention) {
|
||||
case ProcCC_Odin:
|
||||
if (default_calling_convention() != ProcCC_Odin) {
|
||||
str = gb_string_appendc(str, " \"odin\" ");
|
||||
}
|
||||
break;
|
||||
case ProcCC_Contextless:
|
||||
str = gb_string_appendc(str, " \"contextless\" ");
|
||||
if (default_calling_convention() != ProcCC_Contextless) {
|
||||
str = gb_string_appendc(str, " \"contextless\" ");
|
||||
}
|
||||
break;
|
||||
case ProcCC_CDecl:
|
||||
str = gb_string_appendc(str, " \"cdecl\" ");
|
||||
|
||||
Reference in New Issue
Block a user