add testspr debug tools

This commit is contained in:
bolero-MURAKAMI 2017-09-29 23:17:17 +09:00
parent aefc564640
commit 8d7d234803
5 changed files with 685 additions and 1 deletions

View file

@ -79,6 +79,16 @@ namespace sprout {
}
};
//
// assertion_failed_msg_default
//
inline SPROUT_NON_CONSTEXPR bool
assertion_failed_default(sprout::assertion_info_msg const& info) {
return (std::cerr << "***** Internal Program Error - assertion (" << info.expr() << ") failed: " << info.file() << "(" << info.line() << ")" << ": " << msg << std::endl),
std::abort(), false
;
}
//
// assertion_failed_msg
// * user defined
@ -172,6 +182,16 @@ namespace sprout {
}
};
//
// assertion_failed_default
//
inline SPROUT_NON_CONSTEXPR bool
assertion_failed_default(sprout::assertion_info const& info) {
return (std::cerr << "***** Internal Program Error - assertion (" << info.expr() << ") failed: " << info.file() << "(" << info.line() << ")" << std::endl),
std::abort(), false
;
}
//
// assertion_failed
// * user defined