IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 17, 2008, 1:43:03 PM (18 years ago)
Author:
jhoblitt
Message:

convert assert() to psAssert()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psPolynomialMD.c

    r17147 r17447  
    4444{
    4545    int numTerms = vector->n;           // Number of terms
    46     assert(matrix->numCols == numTerms && matrix->numRows == numTerms);
    47     assert(buffer && buffer->n == numTerms && buffer->type.type == PS_TYPE_F64);
     46    psAssert(matrix->numCols == numTerms && matrix->numRows == numTerms, "impossible");
     47    psAssert(buffer && buffer->n == numTerms && buffer->type.type == PS_TYPE_F64, "impossible");
    4848
    4949#ifdef DEBUG
     
    161161                              )
    162162{
    163     assert(poly);
    164     assert(coords);
    165     assert(values);
     163    psAssert(poly, "impossible");
     164    psAssert(coords, "impossible");
     165    psAssert(values, "impossible");
    166166
    167167    double rms = 0.0;                   // Root mean square deviation
Note: See TracChangeset for help on using the changeset viewer.