IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3573


Ignore:
Timestamp:
Mar 30, 2005, 1:38:37 PM (21 years ago)
Author:
gusciora
Message:

...

Location:
trunk/psLib/src
Files:
2 edited

Legend:

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

    r3572 r3573  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-03-30 23:35:07 $
     8 *  @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-03-30 23:38:37 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    197197    CLEANUP; \
    198198} \
     199
     200// XXX: The above macro is seg faulting on occasion.
     201#define PS_ORIG_VECTOR_CHECK_NULL(NAME, RVAL) \
     202if (NAME == NULL || NAME->data.U8 == NULL) { \
     203    psError(PS_ERR_BAD_PARAMETER_NULL, true, \
     204            "Unallowable operation: psVector %s or its data is NULL.", \
     205            #NAME); \
     206} \
     207
    199208
    200209#define PS_VECTOR_CHECK_EMPTY(NAME, RVAL) PS_VECTOR_CHECK_EMPTY_GENERAL(NAME, return RVAL)
  • trunk/psLib/src/math/psConstants.h

    r3572 r3573  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-03-30 23:35:07 $
     8 *  @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-03-30 23:38:37 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    197197    CLEANUP; \
    198198} \
     199
     200// XXX: The above macro is seg faulting on occasion.
     201#define PS_ORIG_VECTOR_CHECK_NULL(NAME, RVAL) \
     202if (NAME == NULL || NAME->data.U8 == NULL) { \
     203    psError(PS_ERR_BAD_PARAMETER_NULL, true, \
     204            "Unallowable operation: psVector %s or its data is NULL.", \
     205            #NAME); \
     206} \
     207
    199208
    200209#define PS_VECTOR_CHECK_EMPTY(NAME, RVAL) PS_VECTOR_CHECK_EMPTY_GENERAL(NAME, return RVAL)
Note: See TracChangeset for help on using the changeset viewer.