Skip to content

Commit

Permalink
refact(core): use export annotation for init_args
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Nov 3, 2023
1 parent 78718d0 commit 70c907a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/src/entry_point.c.ri
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ extern (Rivet) {
func drop_globals();
}

extern (C) func init_args(_argc: usize, _argv: [&][&]uint8) {
#[export("init_args")]
func init_args(_argc: usize, _argv: [&][&]uint8) {
unsafe {
ARGS = @vec(string, _argc);
mut i: usize := 0;
Expand Down

0 comments on commit 70c907a

Please sign in to comment.