diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-09-30 11:20:35 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-09-30 11:20:35 +0100 |
| commit | e2b9c87aa888da76d6bd366fd99d0c8d2d99e756 (patch) | |
| tree | 14ab0844822d2be0b7cdd2ace768d73ceb8d4310 /core/os_linux.odin | |
| parent | 8c7cf0dbb0b4cf9730788c619c8cb9adf8f284a1 (diff) | |
Wrap entry point `main` around the C style `main` in the IR
Diffstat (limited to 'core/os_linux.odin')
| -rw-r--r-- | core/os_linux.odin | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/os_linux.odin b/core/os_linux.odin index afbd41f7c..3a4a8d6cf 100644 --- a/core/os_linux.odin +++ b/core/os_linux.odin @@ -267,6 +267,9 @@ dlerror :: proc() -> string { _alloc_command_line_arguments :: proc() -> []string { - // TODO(bill): - return nil; + args := make([]string, __argc__); + for i in 0..__argc__ { + args[i] = strings.to_odin_string((__argv__+i)^); + } + return args; } |