Changeset 2212 for trunk/psLib/src/dataManip/psConstants.h
- Timestamp:
- Oct 27, 2004, 10:07:17 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psConstants.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psConstants.h
r2211 r2212 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-10-27 19:58:54$8 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-10-27 20:07:17 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 95 95 96 96 /***************************************************************************** 97 97 Macros which take a generic psLib type and determine if it is NULL, or has 98 the wrong type. 98 99 *****************************************************************************/ 99 #define PS_ CHECK_NULL_PTR(NAME, RVAL) \100 #define PS_PTR_CHECK_NULL(NAME, RVAL) \ 100 101 if (NAME == NULL) { \ 101 102 psError(__func__,"Unallowable operation: %s is NULL.", #NAME); \ … … 103 104 } 104 105 105 /***************************************************************************** 106 107 *****************************************************************************/ 108 #define VECTOR_CHECK_TYPE_F32_OR_F64(VEC, RVAL) \ 106 #define PS_PTR_CHECK_TYPE(NAME, TYPE, RVAL) \ 107 if (NAME->type.type != TYPE) { \ 108 psError(__func__,"Unallowable operation: %s has incorrect type.", #NAME); \ 109 return(RVAL); \ 110 } 111 /***************************************************************************** 112 113 *****************************************************************************/ 114 #define PS_VECTOR_CHECK_TYPE_F32_OR_F64(VEC, RVAL) \ 109 115 if ((VEC->type.type != PS_TYPE_F32) && (VEC->type.type != PS_TYPE_F64)) { \ 110 116 psAbort(__func__, "Bad type for VEC (%d)", VEC->type.type); \
Note:
See TracChangeset
for help on using the changeset viewer.
