Skip to content

Commit 8180b74

Browse files
gbaraldiKristofferC
authored andcommitted
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 (cherry picked from commit 92aacab)
1 parent 3ca6ec5 commit 8180b74

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
@@ -243,6 +243,7 @@
243243
XX(jl_init_) \
244244
XX(jl_init_options) \
245245
XX(jl_init_restored_module) \
246+
XX(jl_init_with_image) \
246247
XX(jl_init_with_image_file) \
247248
XX(jl_init_with_image_handle) \
248249
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)