[MOAB-dev] r4379 - in MOAB/trunk: src src/io src/io/moab src/moab tools/refiner
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Thu Dec 16 11:56:15 CST 2010
Author: kraftche
Date: 2010-12-16 11:56:15 -0600 (Thu, 16 Dec 2010)
New Revision: 4379
Added:
MOAB/trunk/src/moab/Compiler.hpp
Modified:
MOAB/trunk/src/DebugOutput.hpp
MOAB/trunk/src/Error.hpp
MOAB/trunk/src/Makefile.am
MOAB/trunk/src/ReadUtil.hpp
MOAB/trunk/src/WriteUtil.hpp
MOAB/trunk/src/io/WriteAns.hpp
MOAB/trunk/src/io/WriteCCMIO.hpp
MOAB/trunk/src/io/WriteGMV.hpp
MOAB/trunk/src/io/WriteHDF5.hpp
MOAB/trunk/src/io/WriteNCDF.hpp
MOAB/trunk/src/io/WriteSLAC.hpp
MOAB/trunk/src/io/WriteSmf.hpp
MOAB/trunk/src/io/WriteTemplate.hpp
MOAB/trunk/src/io/moab/ExoIIInterface.hpp
MOAB/trunk/src/moab/Interface.hpp
MOAB/trunk/src/moab/ReadUtilIface.hpp
MOAB/trunk/src/moab/Types.hpp
MOAB/trunk/src/moab/WriteUtilIface.hpp
MOAB/trunk/tools/refiner/EntityRefiner.hpp
MOAB/trunk/tools/refiner/MeshRefiner.hpp
MOAB/trunk/tools/refiner/SimplexTemplateTagAssigner.hpp
Log:
Consolidate compiler-specific logic in one place (using preprocess macros
pre-defined by the compiler to enable compiler-specific features) to a
common file: moab/Compiler.hpp
Also, remove MB_DLL_EXPORT from a bunch of file writers. Individual file
writers are not part of the MOAB API.
Modified: MOAB/trunk/src/DebugOutput.hpp
===================================================================
--- MOAB/trunk/src/DebugOutput.hpp 2010-12-15 22:04:31 UTC (rev 4378)
+++ MOAB/trunk/src/DebugOutput.hpp 2010-12-16 17:56:15 UTC (rev 4379)
@@ -7,6 +7,8 @@
#include <iosfwd>
#include <string>
+#include "moab/Compiler.hpp"
+
namespace moab {
class Range;
@@ -152,11 +154,7 @@
{ if (check(verbosity)) print_real(str); }
//!\brief Output the specified printf-formatted output iff output is enabled
- inline void printf( int verbosity, const char* fmt, ... )
-#ifdef __GNUC__
- __attribute__((format(printf,3,4)))
-#endif
- ;
+ inline void printf( int verbosity, const char* fmt, ... ) MB_PRINTF(2);
//!\brief Output the specified string iff output is enabled.
//!
@@ -173,11 +171,7 @@
//!\brief Output the specified printf-formatted output iff output is enabled
//!
//! Include current CPU time (as returned by clock()) in output.
- inline void tprintf( int verbosity, const char* fmt, ... )
-#ifdef __GNUC__
- __attribute__((format(printf,3,4)))
-#endif
- ;
+ inline void tprintf( int verbosity, const char* fmt, ... ) MB_PRINTF(2);
//!\brief Print the contents of a moab::Range
Modified: MOAB/trunk/src/Error.hpp
===================================================================
--- MOAB/trunk/src/Error.hpp 2010-12-15 22:04:31 UTC (rev 4378)
+++ MOAB/trunk/src/Error.hpp 2010-12-16 17:56:15 UTC (rev 4379)
@@ -41,6 +41,7 @@
#include <stdio.h>
#include "moab/Types.hpp"
+#include "moab/Compiler.hpp"
#ifdef WIN32
More information about the moab-dev
mailing list