aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 04ac31a01..f36765641 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -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\" ");