diff --git a/src/Mex.jl b/src/Mex.jl index cbc2431..7420123 100644 --- a/src/Mex.jl +++ b/src/Mex.jl @@ -16,11 +16,12 @@ const libut = Ref{Ptr{Cvoid}}() const ut_is_interrupt_pending = Ref{Ptr{Cvoid}}() function __init__() - libmex[] = Libdl.dlopen(joinpath(MATLAB.matlab_libpath, "libmex"), Libdl.RTLD_GLOBAL) - mex_call_matlab_with_trap[] = Libdl.dlsym(libmex[], :mexCallMATLABWithTrap) + + libmex[] = Libdl.dlopen(joinpath(MATLAB.matlab_libpath, "libmex"), Libdl.RTLD_GLOBAL; throw_error=false) + mex_call_matlab_with_trap[] = Libdl.dlsym(libmex[], :mexCallMATLABWithTrap; throw_error=false) - libut[] = Libdl.dlopen(joinpath(MATLAB.matlab_libpath, "libut"), Libdl.RTLD_GLOBAL) - ut_is_interrupt_pending[] = Libdl.dlsym(libut[], :utIsInterruptPending) + libut[] = Libdl.dlopen(joinpath(MATLAB.matlab_libpath, "libut"), Libdl.RTLD_GLOBAL; throw_error=false) + ut_is_interrupt_pending[] = Libdl.dlsym(libut[], :utIsInterruptPending; throw_error=false) end # --- Patches --- #