Changeset 962 for trunk/src/matlab
- Timestamp:
- Mar 25, 2008 12:19:50 PM (15 years ago)
- Location:
- trunk/src/matlab
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/matlab/rpLib.cc
r162 r962 40 40 41 41 /* Call the C++ subroutine. */ 42 if (!path.empty()) { 43 lib = new RpLibrary(path); 44 if (lib) { 45 // store the library and return a dictionary key 46 libIndex = storeObject_Lib(lib); 47 if (libIndex) { 48 err = 0; 49 } 42 lib = new RpLibrary(path); 43 if (lib) { 44 // store the library and return a dictionary key 45 libIndex = storeObject_Lib(lib); 46 if (libIndex) { 47 err = 0; 50 48 } 51 49 } -
trunk/src/matlab/rpLibResult.cc
r789 r962 17 17 18 18 /**********************************************************************/ 19 // METHOD: [err] = rpLibResult (libHandle )19 // METHOD: [err] = rpLibResult (libHandle,status) 20 20 /// Write Rappture Library to run.xml and signal end of processing. 21 21 /** … … 30 30 int libIndex = 0; 31 31 int err = 1; 32 int status = 0; 32 33 RpLibrary* lib = NULL; 33 34 34 35 /* Check for proper number of arguments. */ 35 if (nrhs != 1) { 36 if (nrhs > 2) { 37 mexErrMsgTxt("At most two input allowed."); 38 } 39 40 if (nrhs < 1) { 36 41 mexErrMsgTxt("One input required."); 37 42 } … … 40 45 libIndex = getIntInput(prhs[0]); 41 46 47 if (nrhs == 2) { 48 status = getIntInput(prhs[1]); 49 } 50 42 51 /* Call the C subroutine. */ 43 52 if (libIndex > 0) { … … 45 54 if (lib) { 46 55 lib->put("tool.version.rappture.language", "matlab"); 47 lib->result( );56 lib->result(status); 48 57 err = 0; 49 58 // cleanLibDict();
Note: See TracChangeset
for help on using the changeset viewer.