IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 27, 2004, 1:41:42 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psConstants.h

    r1903 r1907  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-09-25 23:05:07 $
     8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-09-27 23:41:42 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4848}
    4949
     50/** Preprocessor macro to generate error on a NULL image */
     51#define PS_CHECK_NULL_IMAGE(NAME)                                                           \
     52if (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)                                                           \
     58if (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)                                                          \
     65if (NAME == NULL || NAME->coeff == NULL) {                                                         \
     66    psError(__func__,"Invalid operation: %s or its data is NULL.", #NAME);                          \
     67}
     68
    5069#define PS_PRINT_VECTOR(NAME) \
    5170for (int my_i=0;my_i<NAME->n;my_i++) { \
Note: See TracChangeset for help on using the changeset viewer.