mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 14:54:52 -04:00
Merge branch 'master' into directx-packages
This commit is contained in:
commit
8e8a075a22
11 files changed
+94
-61
No files matched your search
@@ -3412,12 +3412,18 @@ ProcCallingConvention string_to_calling_convention(String s) {
|
||||
if (s == "fast") return ProcCC_FastCall;
|
||||
if (s == "none") return ProcCC_None;
|
||||
if (s == "naked") return ProcCC_Naked;
|
||||
|
||||
if (s == "win64") return ProcCC_Win64;
|
||||
if (s == "sysv") return ProcCC_SysV;
|
||||
|
||||
if (s == "system") {
|
||||
if (build_context.metrics.os == TargetOs_windows) {
|
||||
return ProcCC_StdCall;
|
||||
}
|
||||
return ProcCC_CDecl;
|
||||
}
|
||||
|
||||
|
||||
return ProcCC_Invalid;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user