diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-03-01 14:47:43 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-03-01 14:47:43 +0100 |
commit | 0db21a84dd3cb0f6a78bd462a4a60a4b4a3c6fae (patch) | |
tree | a833d4787504e8612282a82c60d3984be51bdffe /matlab/mex/mexInitFunctions.cpp | |
parent | da11f9e7c7559eb01cc422ac55c9f7a1cd4bb803 (diff) | |
parent | b74e64aef7845666d27cbf7e876a6a360eefed7f (diff) | |
download | astra-0db21a84dd3cb0f6a78bd462a4a60a4b4a3c6fae.tar.gz astra-0db21a84dd3cb0f6a78bd462a4a60a4b4a3c6fae.tar.bz2 astra-0db21a84dd3cb0f6a78bd462a4a60a4b4a3c6fae.tar.xz astra-0db21a84dd3cb0f6a78bd462a4a60a4b4a3c6fae.zip |
Merge branch 'master' into indexmanager
Diffstat (limited to 'matlab/mex/mexInitFunctions.cpp')
-rw-r--r-- | matlab/mex/mexInitFunctions.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/matlab/mex/mexInitFunctions.cpp b/matlab/mex/mexInitFunctions.cpp index bd3df2c..7245af2 100644 --- a/matlab/mex/mexInitFunctions.cpp +++ b/matlab/mex/mexInitFunctions.cpp @@ -23,5 +23,13 @@ void initASTRAMex(){ if(!astra::CLogger::setCallbackScreen(&logCallBack)){ mexErrMsgTxt("Error initializing mex functions."); } + mexIsInitialized=true; + + + // If we have support for plugins, initialize them. + // (NB: Call this after setting mexIsInitialized, to avoid recursively + // calling initASTRAMex) + mexEvalString("if exist('astra_mex_plugin_c') == 3; astra_mex_plugin_c('init'); end"); + } |