]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Write an '#error' message with a string.
authorDavid Wells <wellsd2@rpi.edu>
Thu, 17 Aug 2017 23:14:13 +0000 (19:14 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Fri, 18 Aug 2017 22:25:14 +0000 (18:25 -0400)
This looks nicer in my editor.

source/base/timer.cc

index ac443cce6b143fbef3c9521cccc8a45a51b77398..cb7ed3f84935b3f1f5434c0f7ca5d05e1d218960 100644 (file)
@@ -126,7 +126,7 @@ void Timer::start ()
   current_lap_starting_wall_time = windows::wall_clock();
   current_lap_starting_cpu_time = windows::cpu_clock();
 #else
-#  error Unsupported platform. Porting not finished.
+#  error "Unsupported platform. Porting not finished."
 #endif
 }
 
@@ -154,7 +154,7 @@ double Timer::stop ()
       last_lap_time = windows::wall_clock() - current_lap_starting_wall_time;
       last_lap_cpu_time = windows::cpu_clock() - current_lap_starting_cpu_time;
 #else
-#  error Unsupported platform. Porting not finished.
+#  error "Unsupported platform. Porting not finished."
 #endif
 
       this->mpi_data = Utilities::MPI::min_max_avg (last_lap_time,
@@ -195,7 +195,7 @@ double Timer::cpu_time() const
       const double running_time = windows::cpu_clock() - current_lap_starting_cpu_time + accumulated_cpu_time;
       return running_time;
 #else
-#  error Unsupported platform. Porting not finished.
+#  error "Unsupported platform. Porting not finished."
 #endif
     }
   else

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.