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/pmFPAWrite.c

    r7249 r7278  
    1616                       )
    1717{
     18    PS_ASSERT_PTR_NON_NULL(readout, false);
     19    PS_ASSERT_PTR_NON_NULL(fits, false);
     20
    1821    pmHDU *hdu = pmHDUFromReadout(readout); // The HDU to which to write
    1922    if (!hdu) {
     
    8790                )
    8891{
     92    PS_ASSERT_PTR_NON_NULL(cell, false);
     93    PS_ASSERT_PTR_NON_NULL(fits, false);
     94
    8995    pmHDU *hdu = cell->hdu;             // The HDU
    9096    if (!hdu) {
     
    118124                )
    119125{
     126    PS_ASSERT_PTR_NON_NULL(chip, false);
     127    PS_ASSERT_PTR_NON_NULL(fits, false);
     128
    120129    pmHDU *hdu = chip->hdu;             // The HDU
    121130    if (!hdu) {
     
    156165               )
    157166{
     167    PS_ASSERT_PTR_NON_NULL(fpa, false);
     168    PS_ASSERT_PTR_NON_NULL(fits, false);
     169
    158170    pmHDU *hdu = fpa->hdu;              // The HDU
    159171    if (!hdu) {
Note: See TracChangeset for help on using the changeset viewer.