Skip to content

Commit

Permalink
Merge branch 'master' into performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Clemapfel authored Feb 17, 2022
2 parents 9de7929 + 8667003 commit e807091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .src/state.inl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace jluna::State
Proxy create_or_assign(const std::string& symbol, Ts... args)
{
static jl_function_t* create_or_assign = jl_find_function("jluna", "create_or_assign");
safe_call(create_or_assign, (jl_value_t*) jl_symbol(symbol.c_str()), args...);
return Main[symbol];
auto* value = safe_call(create_or_assign, (jl_value_t*) jl_symbol(symbol.c_str()), args...);
return Proxy(value, jl_symbol(symbol.c_str()));
}
}

Expand Down

0 comments on commit e807091

Please # to comment.