IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15972


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

Added pmMemCheck functions and some PS_ASSERTS.

Location:
trunk/psModules/src/camera
Files:
2 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) {
  • trunk/psModules/src/camera/pmFPAview.h

    r15093 r15972  
    44 * @author Eugene Magnier, IfA
    55 *
    6  * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-09-29 01:19:47 $
     6 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2008-01-02 20:33:14 $
    88 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    99 */
     
    3535
    3636/// Allocator for pmFPAview
    37 pmFPAview *pmFPAviewAlloc(int nRows     ///< Maximum number of rows per readout segment read, or 0 for all
    38                          );
     37pmFPAview *pmFPAviewAlloc(int nRows);   ///< Maximum number of rows per readout segment read, or 0 for all
     38bool psMemCheckFPAview(psPtr ptr);
    3939
    4040/// Reset a view to select all components
Note: See TracChangeset for help on using the changeset viewer.