Changeset 13231
- Timestamp:
- 09/04/12 09:54:32 (13 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/matlab/include/matlab_macros.h
r12365 r13231 19 19 /*The following macros hide the error exception handling in a matlab module. Just put 20 20 * MODULEBOOT(); and MODULEEND(); at the beginning and end of a module, and c++ exceptions 21 * will be trapped . Really nifty!*/22 //exception.Report();21 * will be trapped*/ 22 #define MODULEBOOT(); try{ 23 23 24 #define MODULEBOOT(); ModuleBoot(); \ 25 try{ 26 27 #define MODULEEND(); ModuleEnd(); }\ 24 #define MODULEEND(); }\ 28 25 catch(ErrorException &exception){\ 29 26 mexErrMsgTxt("ISSM Error"); \ … … 35 32 mexErrMsgTxt("An unexpected error occurred");\ 36 33 } 37 / /}}}34 /*}}}*/ 38 35 /* WRAPPER {{{*/ 39 36 #define WRAPPER(modulename,...) void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) 40 41 37 /*}}}*/ 42 38 /* CHECKARGUMENTS {{{*/ -
issm/trunk-jpl/src/c/shared/Wrapper/ModuleBoot.cpp
r11935 r13231 11 11 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!" 12 12 #endif 13 14 13 15 14 int ModuleBoot(void){
Note:
See TracChangeset
for help on using the changeset viewer.