Changeset 13035


Ignore:
Timestamp:
08/14/12 16:54:57 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: getting rid of _error_, only use _error2_

Location:
issm/trunk-jpl/src/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/include/macros.h

    r12775 r13035  
    2222/*Printing macro: only cpu number 0 */
    2323#define _printf_(flag,...) do{if(flag) PrintfFunction(__VA_ARGS__);}while(0)
    24 /*}}}*/
    25 /* _error_ {{{*/
    26 /*Error exception macro*/
    27 #ifdef _INTEL_WIN_
    28 #define _error_(...)\
    29   throw ErrorException(exprintf(__VA_ARGS__))
    30 #else
    31 #define _error_(...)\
    32   throw ErrorException(__FILE__,__func__,__LINE__,exprintf(__VA_ARGS__))
    33 #endif
    3424/*}}}*/
    3525/* _error2_ {{{*/
     
    7565#ifdef _ISSM_DEBUG_
    7666#define _assert_(statement)\
    77   if (!(statement)) _error_("Assertion \"%s\" failed, please report bug to %s",#statement,PACKAGE_BUGREPORT)
     67  if (!(statement)) _error2_("Assertion \""<<#statement<<"\" failed, please report bug to "<<PACKAGE_BUGREPORT)
    7868#else
    7969#define _assert_(ignore)\
  • issm/trunk-jpl/src/c/shared/Sys/ProfilingEnd.cpp

    r12701 r13035  
    3030        _pprintLine_("PETSc memory used   : " << memUse << "  Bytes");
    3131        #else
    32                 _error_("Profiling not supported under this numerical toolkit");
     32                _error2_("Profiling not supported under this numerical toolkit");
    3333        #endif
    3434
  • issm/trunk-jpl/src/c/shared/Sys/ProfilingStart.cpp

    r12777 r13035  
    2323                PetscGetFlops(&Flops_start );
    2424        #else
    25                 _error_("Profiling not supported under this numerical toolkit");
     25                _error2_("Profiling not supported under this numerical toolkit");
    2626        #endif
    2727
Note: See TracChangeset for help on using the changeset viewer.