Commits

Michał Górny committed 5a62e42

Move not_reached into consts.h.

  • Participants
  • Parent commits 087ba8b

Comments (0)

Files changed (4)

 {
 #endif /*__cplusplus*/
 
+/* used in assertions, always false */
+static const int not_reached = 0;
+
 /* Based on IF97-Rev, s. 3: Reference Constants */
 
 static const double R = 0.461526; /* [kJ/kgK] */
 #	include "config.h"
 #endif
 
+#include "consts.h"
 #include "h2o.h"
 #include "region1.h"
 #include "region2.h"
 
 #include <assert.h>
 
-static const int not_reached = 0;
-
 typedef double (*twoarg_func_t)(double, double);
 
 h2o_t h2o_new_pT(double p, double T)

src/region2/region2.c

 
 static const double Tstar = 540; /* [K] */
 
-static const int not_reached = 0;
-
 static double h2o_region2_gammao_pitau(double pi, double tau, int pider, int tauder)
 {
 	switch (pider)

tests/h2o-t-tests.c

 #include <stdio.h>
 #include <math.h>
 
+#include "consts.h"
 #include "h2o.h"
 
 int tests_done = 0;
 typedef double (*func_get)(const h2o_t);
 typedef h2o_t (*func_new)(double, double);
 
-static const int not_reached = 0;
-
 const char* name_by_prop(func_get prop)
 {
 	if (prop == &h2o_get_p)