IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 9, 2004, 1:31:14 PM (22 years ago)
Author:
evanalst
Message:

Add macro for check if arguments are not of dimension PS_DIMEN_OTHER.

File:
1 edited

Legend:

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

    r2635 r2680  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-12-06 19:49:36 $
     8 *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-12-09 23:31:14 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    117117#define PS_PTR_CHECK_DIMEN_GENERAL(NAME, DIMEN, CLEANUP) \
    118118if (NAME->type.dimen != DIMEN) { \
     119    psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
     120            "Unallowable operation: %s has incorrect dimensionality.", \
     121            #NAME); \
     122    CLEANUP; \
     123}
     124
     125#define PS_PTR_CHECK_DIMEN_GENERAL_NOT(NAME, DIMEN, CLEANUP) \
     126if (NAME->type.dimen == DIMEN) { \
    119127    psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
    120128            "Unallowable operation: %s has incorrect dimensionality.", \
Note: See TracChangeset for help on using the changeset viewer.