Changeset 2272
- Timestamp:
- Nov 3, 2004, 12:58:53 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
dataManip/psConstants.h (modified) (2 diffs)
-
math/psConstants.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psConstants.h
r2261 r2272 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-11-0 2 01:52:43 $8 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-11-03 22:58:53 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 264 264 } 265 265 266 266 #define PS_READOUT_CHECK_EMPTY(NAME, RVAL) \ 267 if (NAME->image->numCols < 1 || NAME->image->numRows < 1) { \ 268 psError(__func__,"Unallowable operation: psReadout %s or its data is NULL.", #NAME); \ 269 return(RVAL); \ 270 } 271 272 #define PS_READOUT_CHECK_TYPE(NAME, TYPE, RVAL) \ 273 if (NAME->image->type.type != TYPE) { \ 274 psError(__func__,"Unallowable operation: psImage %s has incorrect type.", #NAME); \ 275 return(RVAL); \ 276 } 267 277 268 278 /***************************************************************************** -
trunk/psLib/src/math/psConstants.h
r2261 r2272 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-11-0 2 01:52:43 $8 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-11-03 22:58:53 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 264 264 } 265 265 266 266 #define PS_READOUT_CHECK_EMPTY(NAME, RVAL) \ 267 if (NAME->image->numCols < 1 || NAME->image->numRows < 1) { \ 268 psError(__func__,"Unallowable operation: psReadout %s or its data is NULL.", #NAME); \ 269 return(RVAL); \ 270 } 271 272 #define PS_READOUT_CHECK_TYPE(NAME, TYPE, RVAL) \ 273 if (NAME->image->type.type != TYPE) { \ 274 psError(__func__,"Unallowable operation: psImage %s has incorrect type.", #NAME); \ 275 return(RVAL); \ 276 } 267 277 268 278 /*****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.
