Add byval

This commit is contained in:
gingerBill
2020-03-12 22:33:49 +00:00
parent 2a2d3273ea
commit da283d5a7f
3 changed files with 36 additions and 6 deletions
+7
View File
@@ -2434,6 +2434,13 @@ void set_procedure_abi_types(gbAllocator allocator, Type *type) {
}
break;
}
if (build_context.ODIN_OS == "linux" ||
build_context.ODIN_OS == "darwin") {
if (is_type_pointer(new_type) & !is_type_pointer(e->type)) {
e->flags |= EntityFlag_ByVal;
}
}
}
}