Skip to content

Commit 5c08aca

Browse files
committed
Readd old function name for backward compatibility in init
1 parent d7c70bc commit 5c08aca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)