[MOAB-dev] r4000 - MOAB/trunk/src
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Mon Jun 7 12:45:42 CDT 2010
Author: kraftche
Date: 2010-06-07 12:45:42 -0500 (Mon, 07 Jun 2010)
New Revision: 4000
Modified:
MOAB/trunk/src/DebugOutput.hpp
Log:
fix other gcc 3.2 issue reported by Mark Miller
Modified: MOAB/trunk/src/DebugOutput.hpp
===================================================================
--- MOAB/trunk/src/DebugOutput.hpp 2010-06-04 20:24:46 UTC (rev 3999)
+++ MOAB/trunk/src/DebugOutput.hpp 2010-06-07 17:45:42 UTC (rev 4000)
@@ -149,20 +149,11 @@
{ if (check(verbosity)) print_real(str); }
//!\brief Output the specified printf-formatted output iff output is enabled
- void printf( int verbosity, const char* fmt, ... )
+ inline void printf( int verbosity, const char* fmt, ... )
#ifdef __GNUC__
__attribute__((format(printf,3,4)))
#endif
- {
- if (check(verbosity)) {
- va_list args1, args2;
- va_start(args1, fmt);
- va_start(args2, fmt);
- print_real(fmt, args1, args2);
- va_end(args2);
- va_end(args1);
- }
- }
+ ;
//!\brief Output the specified string iff output is enabled.
//!
@@ -179,20 +170,12 @@
//!\brief Output the specified printf-formatted output iff output is enabled
//!
//! Include current CPU time (as returned by clock()) in output.
- void tprintf( int verbosity, const char* fmt, ... )
+ inline void tprintf( int verbosity, const char* fmt, ... )
#ifdef __GNUC__
__attribute__((format(printf,3,4)))
#endif
- {
- if (check(verbosity)) {
- va_list args1, args2;
- va_start(args1, fmt);
- va_start(args2, fmt);
- tprint_real(fmt, args1, args2);
- va_end(args2);
- va_end(args1);
- }
- }
+ ;
+
//!\brief Print the contents of a moab::Range
//!\param pfx String to print after default class prefix and before range contents
More information about the moab-dev
mailing list