Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export jl_get_function #22190

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/jlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,11 @@ JL_DLLEXPORT void jl_get_fenv_consts(int *ret)
ret[8] = FE_TOWARDZERO;
}

JL_DLLEXPORT jl_function_t *jl_get_function(jl_module_t *m, const char *name)
{
return (jl_function_t*)jl_get_global(m, jl_symbol(name));
}

#ifdef __cplusplus
}
#endif
6 changes: 2 additions & 4 deletions src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -1240,10 +1240,8 @@ JL_DLLEXPORT int jl_is_imported(jl_module_t *m, jl_sym_t *s);
JL_DLLEXPORT int jl_module_exports_p(jl_module_t *m, jl_sym_t *var);
JL_DLLEXPORT jl_module_t *jl_new_main_module(void);
JL_DLLEXPORT void jl_add_standard_imports(jl_module_t *m);
STATIC_INLINE jl_function_t *jl_get_function(jl_module_t *m, const char *name)
{
return (jl_function_t*)jl_get_global(m, jl_symbol(name));
}
JL_DLLEXPORT jl_function_t *jl_get_function(jl_module_t *m, const char *name);

int jl_is_submodule(jl_module_t *child, jl_module_t *parent);

// eq hash tables
Expand Down