Skip to content

Commit

Permalink
tolerate defining submodules of Base before Operators exists
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Feb 25, 2015
1 parent 838e68e commit 31acbca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/toplevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ void jl_add_standard_imports(jl_module_t *m)
// using Base
jl_module_using(m, jl_base_module);
// importall Base.Operators
jl_module_importall(m, (jl_module_t*)jl_get_global(jl_base_module,
jl_symbol("Operators")));
jl_module_t *opmod = (jl_module_t*)jl_get_global(jl_base_module, jl_symbol("Operators"));
if (opmod != NULL)
jl_module_importall(m, opmod);
}

jl_module_t *jl_new_main_module(void)
Expand Down

0 comments on commit 31acbca

Please sign in to comment.