(file) Return to PegasusAssert.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/PegasusAssert.h between version 1.5 and 1.10

version 1.5, 2005/12/02 21:45:08 version 1.10, 2008/01/30 12:12:30
Line 1 
Line 1 
 //%2005////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
Line 8 
Line 8 
 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 // EMC Corporation; VERITAS Software Corporation; The Open Group. // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 27 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Jim Wunderlich, (Jim_Wunderlich@prodigy.net)  
 //  
 // Modified By:  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
 #ifndef Pegasus_Assert_h #ifndef Pegasus_Assert_h
 #define Pegasus_Assert_h #define Pegasus_Assert_h
  
   #ifdef PEGASUS_OS_ZOS
     // zOS specific implementation of assert macros.
   # include <Pegasus/Common/PegasusAssertZOS.h>
  
   #else
 // NOTE: // NOTE:
 // //
   //  This is the common implementation for the assert macros.
   //  If platform specific implementation are needed they have to
   //  be placed in a platform specific include file and included before.
   //
 // All built and tested OK with <assert.h> // All built and tested OK with <assert.h>
 // but <cassert> is more appropriate for c++ files // but <cassert> is more appropriate for c++ files
 // however if this should be a problem for any c fileswithin the tree // however if this should be a problem for any c fileswithin the tree
Line 93 
Line 99 
 {                                                                 \ {                                                                 \
   if (!(COND))                                                    \   if (!(COND))                                                    \
     {                                                             \     {                                                             \
       printf("PEGASUS_TEST_ASSERT failed in file %s at line %d\n",__FILE__, __LINE__); \              printf("PEGASUS_TEST_ASSERT failed in file %s at line %d\n",  \
                   __FILE__, __LINE__);                                      \
       abort();                                                    \       abort();                                                    \
     }                                                             \     }                                                             \
 } while (0) } while (0)
  
   # endif /* Common Pegasus Assert implementation */
 #endif  /* Pegasus_Assert_h */ #endif  /* Pegasus_Assert_h */


Legend:
Removed from v.1.5  
changed lines
  Added in v.1.10

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2