#endif
+/***********************************************************************
+ * Define a portable preprocessor macro that generates custom warnings
+ * reporting the line and the file where the warning appears. Taken from:
+ * http://goodliffe.blogspot.com/2009/07/c-how-to-say-warning-to-visual-studio-c.html
+ */
+
+#define STRINGIZE_HELPER(x) #x
+#define STRINGIZE(x) STRINGIZE_HELPER(x)
+#define WARNING(desc) message(__FILE__ "(" STRINGIZE(__LINE__) ") : Warning: " #desc)
/***********************************************************************
* Final inclusions:
#ifndef dealii_sacado_product_type_h_deprecated
#define dealii_sacado_product_type_h_deprecated
-#warning This file is deprecated. Use <deal.II/differentiation/ad/sacado_product_types.h> instead.
+
+#include <deal.II/base/config.h>
+
+#pragma WARNING( \
+ "This file is deprecated. Use <deal.II/differentiation/ad/sacado_product_types.h> instead.")
#include <deal.II/differentiation/ad/sacado_product_types.h>
#include <deal.II/dofs/deprecated_function_map.h>
-#warning "This file is deprecated."
+#pragma WARNING("This file is deprecated.")
#endif
#include <deal.II/base/config.h>
-#warning This file is deprecated. Use the Manifold classes instead.
+#pragma WARNING("This file is deprecated. Use the Manifold classes instead.")
#endif
#include <deal.II/base/config.h>
-#warning This file is deprecated. Use the Manifold classes instead.
+#pragma WARNING("This file is deprecated.Use the Manifold classes instead.")
#endif
#ifndef dealii_constraint_matrix_h
#define dealii_constraint_matrix_h
-#warning This file is deprecated. Use <deal.II/lac/affine_constraints.h> instead.
+#pragma WARNING( \
+ "This file is deprecated. Use <deal.II/lac/affine_constraints.h> instead.")
#include <deal.II/lac/affine_constraints.h>
#include <deal.II/lac/la_parallel_block_vector.h>
-#warning This file is deprecated. Use <deal.II/lac/la_block_vector.h> and LinearAlgebra::distributed::BlockVector instead.
+#pragma WARNING( \
+ "This file is deprecated. Use <deal.II/lac/la_block_vector.h> and LinearAlgebra::distributed::BlockVector instead.")
#include <cstring>
#include <iomanip>
#include <deal.II/lac/la_parallel_vector.h>
-#warning This file is deprecated. Use <deal.II/lac/la_parallel_vector.h> and LinearAlgebra::distributed::Vector instead.
+#pragma WARNING( \
+ "This file is deprecated. Use <deal.II/lac/la_parallel_vector.h> and LinearAlgebra::distributed::Vector instead.")
#include <cstring>
#include <iomanip>
getrusage(RUSAGE_SELF, &usage);
system_cpu_duration = usage.ru_utime.tv_sec + 1.e-6 * usage.ru_utime.tv_usec;
#else
-# warning "Unsupported platform. Porting not finished."
+# pragma WARNING("Unsupported platform. Porting not finished.")
#endif
return time_point(
internal::TimerImplementation::from_seconds<duration>(system_cpu_duration));