Skip to content

Commit

Permalink
include files via jleval
Browse files Browse the repository at this point in the history
  • Loading branch information
taylormcd committed Nov 23, 2021
1 parent 3b67fe3 commit 7e61228
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mexjulia/jl.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,14 @@
%
% fn - the name of the function to wrap
function hdl = wrapmex(fn)
% check if julia is initialized
jl.check_init();
hdl = @(varargin) jl.mex(fn, varargin{:});
end

% Include a file in the Julia runtime
function include(fl)
% check if julia is initialized
jl.check_init();
mexjulia(true, sprintf('Base.include(Main,"%s");',jl.forward_slashify(fl)));
jl.eval(sprintf('include("%s"); nothing', jl.forward_slashify(fl)));
end

% Simple Julia REPL mode
Expand Down

0 comments on commit 7e61228

Please sign in to comment.