Changeset 7277 for trunk/psLib/src/math/psConstants.h
- Timestamp:
- Jun 1, 2006, 1:02:59 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psConstants.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psConstants.h
r6484 r7277 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.8 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-0 2-24 23:43:15$8 * @version $Revision: 1.87 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-06-01 23:02:59 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 704 704 705 705 /***************************************************************************** 706 PS_READOUTmacros:706 Misc. macros: 707 707 *****************************************************************************/ 708 #define PS_ASSERT_READOUT_NON_NULL(NAME, RVAL) \709 if ((NAME) == NULL || (NAME)->image == NULL) { \710 psError(PS_ERR_BAD_PARAMETER_NULL, true, \711 "Unallowable operation: psReadout %s or its data is NULL.", \712 #NAME); \713 return(RVAL); \714 }715 716 #define PS_ASSERT_READOUT_NON_EMPTY(NAME, RVAL) \717 if ((NAME)->image->numCols < 1 || (NAME)->image->numRows < 1) { \718 psError(PS_ERR_BAD_PARAMETER_SIZE, true, \719 "Unallowable operation: psReadout %s or its data is NULL.", #NAME); \720 return(RVAL); \721 }722 723 #define PS_ASSERT_READOUT_TYPE(NAME, TYPE, RVAL) \724 if ((NAME)->image->type.type != TYPE) { \725 psError(PS_ERR_BAD_PARAMETER_TYPE, true, \726 "Unallowable operation: psImage %s has incorrect type.", #NAME); \727 return(RVAL); \728 }729 730 /*****************************************************************************731 Misc. macros:732 *****************************************************************************/733 708 #define PS_MAX(A, B) \ 734 709 (((A) > (B)) ? (A) : (B))
Note:
See TracChangeset
for help on using the changeset viewer.
