Skip to content

Commit 92aacab

Browse files
authored
Re-add old function name for backward compatibility in init (#58860)
While julia has no C-API backwards compatibility guarantees this is simple enough to add. Fixes #58859
1 parent 056e68b commit 92aacab

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/jl_exported_funcs.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@
238238
XX(jl_init_) \
239239
XX(jl_init_options) \
240240
XX(jl_init_restored_module) \
241+
XX(jl_init_with_image) \
241242
XX(jl_init_with_image_file) \
242243
XX(jl_init_with_image_handle) \
243244
XX(jl_install_sigint_handler) \

src/jlapi.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ JL_DLLEXPORT void jl_init_with_image_file(const char *julia_bindir,
120120
jl_exception_clear();
121121
}
122122

123+
// Deprecated function, kept for backward compatibility
124+
JL_DLLEXPORT void jl_init_with_image(const char *julia_bindir,
125+
const char *image_path)
126+
{
127+
jl_init_with_image_file(julia_bindir, image_path);
128+
}
129+
123130
/**
124131
* @brief Initialize the Julia runtime.
125132
*

0 commit comments

Comments
 (0)