Skip to content

Commit

Permalink
ctx: load messages when creating the prime instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Aug 29, 2022
1 parent 9904fee commit 78e3c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion +DSS_MATLAB/APIUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
loadlibrary(DLLfilePath, @DSS_MATLAB.dss_capi_no_thunk);
end
calllib(obj.libname, 'DSS_Start', 0);
% calllib(obj.libname, 'DSS_SetPropertiesMO', PropertiesMOfilePath);
if (nargin > 0) && (varargin{1} ~= 0)
obj.dssctx = calllib(obj.libname, 'ctx_New');
DSS_MATLAB.ctxrefcount(obj.dssctx, 1);
obj.is_prime = 0;
else
obj.dssctx = calllib(obj.libname, 'ctx_Get_Prime');
obj.is_prime = 1;
calllib(obj.libname, 'DSS_SetPropertiesMO', PropertiesMOfilePath);
end
warning(orig_state);
end
Expand Down

0 comments on commit 78e3c0c

Please sign in to comment.