Skip to content

Commit c5a4409

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/jlapi.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
miscellaneous functions for users of libjulia.so, to handle initialization
66
and the style of use where julia is not in control most of the time.
77
*/
8+
#include "dtypes.h"
89
#include "platform.h"
910

1011
#include <stdlib.h>
@@ -120,6 +121,13 @@ JL_DLLEXPORT void jl_init_with_image_file(const char *julia_bindir,
120121
jl_exception_clear();
121122
}
122123

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

0 commit comments

Comments
 (0)