IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2004, 3:44:48 PM (22 years ago)
Author:
gusciora
Message:

Added new NULL check macros.

File:
1 edited

Legend:

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

    r2058 r2106  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-10-12 20:53:02 $
     8 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-10-14 01:44:48 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    113113    return(NULL); \
    114114}
     115/** Preprocessor macro to generate error on a NULL poniter */
     116#define PS_CHECK_NULL_PTR_RETURN_ZERO(NAME) \
     117if (NAME == NULL) { \
     118    psError(__func__,"Unallowable operation: %s is NULL.", #NAME); \
     119    return(0); \
     120}
    115121
    116122/** Preprocessor macro to generate error for zero length vector */
Note: See TracChangeset for help on using the changeset viewer.