IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 22, 2004, 11:10:52 AM (22 years ago)
Author:
evanalst
Message:

Update psMemCheckLeaks function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psMatrixVectorArithmetic01.c

    r2204 r2392  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-10-27 00:57:33 $
     12 *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-11-22 21:02:51 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7676
    7777
    78 #define CHECK_MEMORY                                                                                         \
    79 psMemCheckLeaks(0, NULL, stdout);                                                                        \
    80 psS32 nBad = psMemCheckCorruption(0);                                                                      \
     78#define CHECK_MEMORY                                                                                     \
     79if(psMemCheckLeaks(0, NULL, stdout, false) != 0 ) {                                                             \
     80    psError(PS_ERR_UNKNOWN,true,"Memory leaks detected.");                                                \
     81    return 10;                                                                                            \
     82}                                                                                                        \
     83psS32 nBad = psMemCheckCorruption(0);                                                                    \
    8184if(nBad) {                                                                                               \
    8285    printf("ERROR: Found %d bad memory blocks\n", nBad);                                                 \
Note: See TracChangeset for help on using the changeset viewer.