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/sys/psTrace.c

    r12286 r17447  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.86 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2007-03-07 00:17:48 $
     11 *  @version $Revision: 1.87 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2008-04-17 23:43:02 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5252#include <stdarg.h>
    5353
     54#include "psAbort.h"
    5455#include "psAssert.h"
    5556#include "psTrace.h"
     
    8384static p_psComponent* componentAlloc(const char *name, int level)
    8485{
    85     assert(name);
     86    psAssert(name, "impossible");
    8687
    8788    p_psComponent* comp = psAlloc(sizeof(p_psComponent));
     
    149150void p_psTraceReset(p_psComponent* currentNode)
    150151{
    151     assert(currentNode);
     152    psAssert(currentNode, "impossible");
    152153
    153154    psS32 i = 0;
     
    184185static bool componentAdd(const char *addNodeName, psS32 level)
    185186{
    186     assert(addNodeName);
     187    psAssert(addNodeName, "impossible");
    187188
    188189    psS32 i = 0;                        // Loop index variable.
     
    346347static psS32 doGetTraceLevel(const char *aname)
    347348{
    348     assert(aname);
     349    psAssert(aname, "impossible");
    349350    char name[strlen(aname) + 1];       // need a writeable copy: for strsep()
    350351    char *pname = name;
     
    472473                               psS32 defLevel)
    473474{
    474     assert(comp);
     475    psAssert(comp, "impossible");
    475476
    476477    char line[1024];
Note: See TracChangeset for help on using the changeset viewer.