Calling functions defined a custom module when embeded in C

jl_eval_string("using mymodule") basically.

I don’t think there’s an API for it. There could be, though given how easy it is to construct this kind of API yourself it certainly won’t be a high priority.

Like pypy, the recommended way to use julia functions in julia is to make your own API. You can create a julia function using_module(name) = eval(:(using $name)) (e.g. with jl_eval_string) and just call that function in C. You can also construct the Expr (i.e. jl_expr_t*) and eval that.

1 Like