IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10275 for trunk/psLib


Ignore:
Timestamp:
Nov 29, 2006, 7:57:20 AM (20 years ago)
Author:
rhl
Message:

People tend to call psAbort when errors have been signalled with
psError (e.g. the memory management code). You don't want this
to vanish, so print it here. N.b. In general there may be
old errors on the stack that haven't been cleared so this is
perhaps not an optimal solution. But it's better than losing
real errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psAbort.c

    r5517 r10275  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *   
    12  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-11-15 20:10:32 $
     12 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-11-29 17:57:20 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1919#include <stdlib.h>
    2020#include "psAbort.h"
     21#include "psError.h"
    2122#include "psLogMsg.h"
    2223
    2324void psAbort(const char *name, const char *format, ...)
    2425{
     26    psErrorStackPrint(stderr, "Aborting. Error stack:");
     27
    2528    va_list argPtr;             // variable list arguement pointer
    2629    // Get the variable list parameters to pass to logging function
Note: See TracChangeset for help on using the changeset viewer.