IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2006, 2:55:23 PM (20 years ago)
Author:
Paul Price
Message:

Addition of a vast quantity of assertions in public functions. Adopted a policy of using assert() within file-static functions (since they are only called internally, any errors there are problems with the program) and using the PS_ASSERT_WHATEVER() macros within public functions. Cleaned a few things up in the process.

File:
1 edited

Legend:

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

    r7257 r7278  
    437437                         )
    438438{
     439    PS_ASSERT_PTR_NON_NULL(cell, false);
     440
    439441    // Get the HDU and a list of cells below it
    440442    pmHDU *hdu = pmHDUFromCell(cell); // The HDU in the cell
     
    487489                         )
    488490{
     491    PS_ASSERT_PTR_NON_NULL(chip, false);
     492
    489493    // Get the HDU and a list of cells below it
    490494    pmHDU *hdu = pmHDUFromChip(chip);   // The HDU in the chip
     
    536540                        )
    537541{
     542    PS_ASSERT_PTR_NON_NULL(fpa, false);
     543
    538544    // Get the HDU and a list of cells below it
    539545    pmHDU *hdu = pmHDUFromFPA(fpa);     // The HDU in the FPA
Note: See TracChangeset for help on using the changeset viewer.