diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-12 20:16:46 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-12 20:16:46 +0000 |
| commit | 7df93ea5044bcc4cb5d9bb15a511b449225b2182 (patch) | |
| tree | a90571cb1cda5982378e6a8331070ecd3a5f9535 /core/runtime | |
| parent | 6209b02bf9d8dc05c34754beded39c4b80f1d8c6 (diff) | |
Initialize `runtime.args__` through `main`
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/proc_windows.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/runtime/proc_windows.odin b/core/runtime/proc_windows.odin index ba3a2b9d8..ef8b0c529 100644 --- a/core/runtime/proc_windows.odin +++ b/core/runtime/proc_windows.odin @@ -34,6 +34,7 @@ when ODIN_BUILD_MODE == "dynamic" { } else { @(link_name="main", linkage="strong", require) main :: proc "c" (argc: i32, argv: [^]cstring) -> i32 { + args__ = argv[:argc] context = default_context() #force_no_inline _startup_runtime() intrinsics.__entry_point() |