IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 14, 2006, 4:57:12 PM (20 years ago)
Author:
drobbin
Message:

Added error handling to memory checking functions. Will hopefully avoid segfaults and abort calls now when passed in native types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psSphereOps.c

    r7766 r7914  
    88 *  @author Dave Robbins, MHPCC
    99 *
    10  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-06-30 02:20:06 $
     10 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-07-15 02:57:12 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8383bool psMemCheckSphereRot(psPtr ptr)
    8484{
     85    if (!is_psType(ptr)) {
     86        return false;
     87    }
    8588    //See if the ptr corresponds to a psSphereRot*
    8689    return ( psMemGetDeallocator(ptr) == (psFreeFunc)sphereRotFree );
Note: See TracChangeset for help on using the changeset viewer.