Changeset 1907 for trunk/psLib/src/math/psConstants.h
- Timestamp:
- Sep 27, 2004, 1:41:42 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psConstants.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psConstants.h
r1903 r1907 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-09-2 5 23:05:07$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-09-27 23:41:42 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 48 48 } 49 49 50 /** Preprocessor macro to generate error on a NULL image */ 51 #define PS_CHECK_NULL_IMAGE(NAME) \ 52 if (NAME == NULL || NAME->data.V == NULL) { \ 53 psError(__func__,"Invalid operation: %s or its data is NULL.", #NAME); \ 54 } 55 56 /** Preprocessor macro to generate error for zero length rows or columns */ 57 #define PS_CHECK_EMPTY_IMAGE(NAME) \ 58 if (NAME->numCols < 1 || NAME->numRows < 1) { \ 59 psError(__func__,"Invalid operation: %s has zero rows or columns (%dx%d).", #NAME, \ 60 NAME->numCols, NAME->numRows); \ 61 } 62 63 /** Preprocessor macro to generate error on a NULL 1DPolynomial */ 64 #define PS_CHECK_NULL_1DPOLY(NAME) \ 65 if (NAME == NULL || NAME->coeff == NULL) { \ 66 psError(__func__,"Invalid operation: %s or its data is NULL.", #NAME); \ 67 } 68 50 69 #define PS_PRINT_VECTOR(NAME) \ 51 70 for (int my_i=0;my_i<NAME->n;my_i++) { \
Note:
See TracChangeset
for help on using the changeset viewer.
