c3lang / c3-web

The website for C3 made with Astro!
https://c3-lang.org/
MIT License
48 stars 24 forks source link

useful to add an example to the @winmain attribute #74

Open joshring opened 1 month ago

joshring commented 1 month ago

Would it be useful to add an example to the @winmain attribute showing how one might want to define the main function? I have seen @Christoffer L giving the example below here in discord

fn int main(
    Win32_HINSTANCE hInstance,
    Win32_HINSTANCE hPrevInstance,
    String[] commands,
    int nCmdShow
) @winmain
lerno commented 1 month ago

I think it should be added yes.