]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Prepend macro names with DEAL_II_ 6949/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 22 Jul 2018 14:45:06 +0000 (16:45 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 22 Jul 2018 14:45:06 +0000 (16:45 +0200)
include/deal.II/base/config.h.in
include/deal.II/base/sacado_product_type.h
include/deal.II/dofs/function_map.h
include/deal.II/grid/tria_boundary.h
include/deal.II/grid/tria_boundary_lib.h
include/deal.II/lac/constraint_matrix.h
include/deal.II/lac/parallel_block_vector.h
include/deal.II/lac/parallel_vector.h
source/base/timer.cc

index 55b34ca6fdca60316a36d4d3de89da8f2881496d..c854b202dfb4201c50ae8f1ab51b876aa43bf839 100644 (file)
@@ -388,9 +388,9 @@ _Pragma("GCC diagnostic pop")
  * 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)
+#define DEAL_II_STRINGIZE_HELPER(x) #x
+#define DEAL_II_STRINGIZE(x) DEAL_II_STRINGIZE_HELPER(x)
+#define DEAL_II_WARNING(desc) message(__FILE__ "(" DEAL_II_STRINGIZE(__LINE__) ") : Warning: " #desc)
 
 /***********************************************************************
  * Final inclusions:
index 37cd154cee1ea3131d143a7939c7c9f9ff07a2b3..450b396843d441685729db0a0ca87357abef7346 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <deal.II/base/config.h>
 
-#pragma WARNING( \
+#pragma DEAL_II_WARNING( \
   "This file is deprecated. Use <deal.II/differentiation/ad/sacado_product_types.h> instead.")
 
 #include <deal.II/differentiation/ad/sacado_product_types.h>
index a26736aaac3fc92240093238345aeede2fbd60c5..2e00e3fccd5360332e13f4f4006fc288d64ba2f8 100644 (file)
@@ -20,6 +20,6 @@
 
 #include <deal.II/dofs/deprecated_function_map.h>
 
-#pragma WARNING("This file is deprecated.")
+#pragma DEAL_II_WARNING("This file is deprecated.")
 
 #endif
index 86da9ecd77c0b742a6d170b213f128c4e042cb97..36f1dd64b0f78ae27071667e99eb3c7048e2de52 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <deal.II/base/config.h>
 
-#pragma WARNING("This file is deprecated. Use the Manifold classes instead.")
+#pragma DEAL_II_WARNING( \
+  "This file is deprecated. Use the Manifold classes instead.")
 
 #endif
index 60d585e694f53e9d66316f424a17279d61a71f55..8832284b2ace051095cb9bf391e602a8ee148e17 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <deal.II/base/config.h>
 
-#pragma WARNING("This file is deprecated.Use the Manifold classes instead.")
+#pragma DEAL_II_WARNING( \
+  "This file is deprecated.Use the Manifold classes instead.")
 
 #endif
index d57abd5d9069ab42d99bc54098eddc422ebb3b1b..28d95d106f698410fcd7847cca015123d1b43e36 100644 (file)
@@ -17,7 +17,9 @@
 #ifndef dealii_constraint_matrix_h
 #define dealii_constraint_matrix_h
 
-#pragma WARNING( \
+#include <deal.II/base/config.h>
+
+#pragma DEAL_II_WARNING( \
   "This file is deprecated. Use <deal.II/lac/affine_constraints.h> instead.")
 
 #include <deal.II/lac/affine_constraints.h>
index e5dbd0236c68d3dc665c87c12658446b1cb23749..22e7e9151bd3f4c5355b1398c9daedf7cb8132f8 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <deal.II/lac/la_parallel_block_vector.h>
 
-#pragma WARNING( \
+#pragma DEAL_II_WARNING( \
   "This file is deprecated. Use <deal.II/lac/la_block_vector.h> and LinearAlgebra::distributed::BlockVector instead.")
 
 #include <cstring>
index 5acba3abf558c827e5e625d0ada8afd2557a1acc..dbfce5cbe0a20c8b3559a6ee66e357dd0422e098 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <deal.II/lac/la_parallel_vector.h>
 
-#pragma WARNING( \
+#pragma DEAL_II_WARNING( \
   "This file is deprecated. Use <deal.II/lac/la_parallel_vector.h> and LinearAlgebra::distributed::Vector instead.")
 
 #include <cstring>
index 3bea9c94ca50f6520276a17890e95a6a58d9a2e0..710abf4b03baee32f77944f0ef3f0d93d5d06703 100644 (file)
@@ -127,7 +127,7 @@ CPUClock::now() noexcept
   getrusage(RUSAGE_SELF, &usage);
   system_cpu_duration = usage.ru_utime.tv_sec + 1.e-6 * usage.ru_utime.tv_usec;
 #else
-#  pragma WARNING("Unsupported platform. Porting not finished.")
+#  pragma DEAL_II_WARNING("Unsupported platform. Porting not finished.")
 #endif
   return time_point(
     internal::TimerImplementation::from_seconds<duration>(system_cpu_duration));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.