IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 2, 2008, 10:33:14 AM (18 years ago)
Author:
gusciora
Message:

Added pmMemCheck functions and some PS_ASSERTS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAview.c

    r15096 r15972  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-09-29 01:26:55 $
     5 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2008-01-02 20:33:14 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3838    pmFPAviewReset(view);
    3939    return view;
     40}
     41
     42bool psMemCheckFPAview(psPtr ptr)
     43{
     44    PS_ASSERT_PTR(ptr, false);
     45    return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmFPAviewFree);
    4046}
    4147
     
    146152    PS_ASSERT_PTR_NON_NULL(view, NULL);
    147153    PS_ASSERT_PTR_NON_NULL(fpa, NULL);
    148 
    149154    if (view->cell < 0) {
    150155        return NULL;
    151156    }
     157    PS_ASSERT_PTR_NON_NULL(fpa->chips, NULL);
    152158
    153159    pmChip *chip = pmFPAviewThisChip (view, fpa);
     
    209215    pmCell *cell = pmFPAviewThisCell (view, fpa);
    210216    PS_ASSERT_PTR_NON_NULL(cell, NULL);
     217    PS_ASSERT_PTR_NON_NULL(cell->readouts, NULL);
    211218
    212219    if (view->readout >= cell->readouts->n) {
Note: See TracChangeset for help on using the changeset viewer.