IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15759


Ignore:
Timestamp:
Dec 7, 2007, 9:30:12 AM (18 years ago)
Author:
Paul Price
Message:

Adding additional details in assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.h

    r14452 r15759  
    99 * @author Joshua Hoblitt, University of Hawaii
    1010 *
    11  * @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
    12  * @date $Date: 2007-08-09 01:40:07 $
     11 * @version $Revision: 1.95 $ $Name: not supported by cvs2svn $
     12 * @date $Date: 2007-12-07 19:30:12 $
    1313 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1414 */
     
    3737    const int numCols;                 ///< Number of columns in image
    3838    const int numRows;                 ///< Number of rows in image.
    39     const int col0;                     ///< Column position relative to parent.
    40     const int row0;                     ///< Row position relative to parent.
     39    const int col0;                     ///< Column position relative to parent.
     40    const int row0;                     ///< Row position relative to parent.
    4141
    4242    union {
     
    235235if ((NAME)->type.type != TYPE) { \
    236236    psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
    237             "Unallowable operation: psImage %s has incorrect type.", \
    238             #NAME); \
     237            "Unallowable operation: psImage %s has incorrect type: %s instead of %s.", \
     238            #NAME, PS_TYPE_NAME((NAME)->type.type), PS_TYPE_NAME(TYPE)); \
    239239    return(RVAL); \
    240240}
     
    243243if ((NAME)->type.type != PS_TYPE_F32 && (NAME)->type.type != PS_TYPE_F64) { \
    244244    psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
    245             "Unallowable operation: psImage %s is not of type F32 or F64.", \
    246             #NAME); \
     245            "Unallowable operation: psImage %s is not of type F32 or F64: %s.", \
     246            #NAME, PS_TYPE_NAME((NAME)->type.type)); \
    247247    return(RVAL); \
    248248}
     
    252252        ((NAME1)->numRows != (NAME2)->numRows)) { \
    253253    psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
    254             "Unallowable operation: psImages %s and %s are not the same size.", \
    255             #NAME1, #NAME2); \
     254            "Unallowable operation: psImages %s and %s are not the same size: %dx%d vs %dx%d.", \
     255            #NAME1, #NAME2, (NAME1)->numCols, (NAME1)->numRows, (NAME2)->numCols, (NAME2)->numRows); \
    256256    return(RVAL); \
    257257}
     
    261261        ((NAME1)->numRows != NUM_ROWS)) { \
    262262    psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
    263             "Unallowable operation: psImages %s is not the correct size.", \
    264             #NAME1); \
     263            "Unallowable operation: psImages %s is not the correct size: %dx%d instead of %dx%d.", \
     264            #NAME1, (NAME1)->numCols, (NAME1)->numRows, NUM_COLS, NUM_ROWS); \
    265265    return(RVAL); \
    266266}
Note: See TracChangeset for help on using the changeset viewer.