Changeset 13035
- Timestamp:
- 08/14/12 16:54:57 (13 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/include/macros.h
r12775 r13035 22 22 /*Printing macro: only cpu number 0 */ 23 23 #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 #else31 #define _error_(...)\32 throw ErrorException(__FILE__,__func__,__LINE__,exprintf(__VA_ARGS__))33 #endif34 24 /*}}}*/ 35 25 /* _error2_ {{{*/ … … 75 65 #ifdef _ISSM_DEBUG_ 76 66 #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) 78 68 #else 79 69 #define _assert_(ignore)\ -
issm/trunk-jpl/src/c/shared/Sys/ProfilingEnd.cpp
r12701 r13035 30 30 _pprintLine_("PETSc memory used : " << memUse << " Bytes"); 31 31 #else 32 _error _("Profiling not supported under this numerical toolkit");32 _error2_("Profiling not supported under this numerical toolkit"); 33 33 #endif 34 34 -
issm/trunk-jpl/src/c/shared/Sys/ProfilingStart.cpp
r12777 r13035 23 23 PetscGetFlops(&Flops_start ); 24 24 #else 25 _error _("Profiling not supported under this numerical toolkit");25 _error2_("Profiling not supported under this numerical toolkit"); 26 26 #endif 27 27
Note:
See TracChangeset
for help on using the changeset viewer.