mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
add testspr debug tools
This commit is contained in:
parent
aefc564640
commit
8d7d234803
5 changed files with 685 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue