zig icon indicating copy to clipboard operation
zig copied to clipboard

Allow c-style main functions

Open gooncreeper opened this issue 1 year ago • 2 comments

Fixes #12569

Adds support for main functions with signatures

pub fn main() c_int
pub fn main(argc: c_int, argv: [*:null]?[*:0]c_char) c_int
pub fn main(argc: c_int, argv: [*:null]?[*:0]c_char, envp: [*:null]?[*:0]c_char) c_int

gooncreeper avatar Jul 16 '24 00:07 gooncreeper

I am unsure why the CI is failing

gooncreeper avatar Jul 16 '24 21:07 gooncreeper

This will need a rebase.

alexrp avatar Jul 31 '24 05:07 alexrp

I misunderstood the issue, this should only work when linking against libc.

gooncreeper avatar Nov 07 '24 23:11 gooncreeper