13 inline const char*
handle_null_ptr(
const char*p) {
if(p)
return p;
else return "nullptr";}
19#define EXPECT2(c, c_msg, line) \
20 ((c) ? std::cerr : (expect_failed = true, std::cerr << c_msg <<" failed in line "<<line << std::endl))
23 EXPECT2(c, #c, __LINE__)
27#define EXPECT_CMP2(x, op, y, x_msg, op_msg, y_msg, line) \
28 (((x) op (y)) ? std::cerr : (expect_failed = true, std::cerr << x_msg << ' ' <<op_msg << ' ' << y_msg << " failed in line "<<line <<"\n"<<x_msg<<" is "<<::RoutingKit::detail::handle_null_ptr(x)<<"\n"<<y_msg<<" is "<<::RoutingKit::detail::handle_null_ptr(y) << std::endl))
30#define EXPECT_CMP(x, op, y) \
31 EXPECT_CMP2(x, op, y, #x, #op, #y, __LINE__)
const T & handle_null_ptr(const T &t)
detail namespace with internal helper functions