fixes
This commit is contained in:
@@ -410,6 +410,7 @@ pub const Function = struct {
|
||||
is_extern: bool = false,
|
||||
is_comptime: bool = false,
|
||||
linkage: Linkage = .internal,
|
||||
call_conv: CallingConvention = .default,
|
||||
|
||||
pub const Param = struct {
|
||||
name: StringId,
|
||||
@@ -422,6 +423,11 @@ pub const Function = struct {
|
||||
private,
|
||||
};
|
||||
|
||||
pub const CallingConvention = enum {
|
||||
default,
|
||||
c,
|
||||
};
|
||||
|
||||
pub fn init(name: StringId, params: []const Param, ret: TypeId) Function {
|
||||
return .{
|
||||
.name = name,
|
||||
|
||||
Reference in New Issue
Block a user