mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
add shrink_to_fit, unmove
This commit is contained in:
parent
22c3f6e132
commit
ae77da19e1
12 changed files with 192 additions and 45 deletions
|
@ -117,7 +117,7 @@ namespace sprout {
|
|||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
inline bool
|
||||
inline SPROUT_NON_CONSTEXPR bool
|
||||
assertion_failed_msg(char const* formatted, char const* msg) {
|
||||
return (std::cerr << formatted << ": " << msg << std::endl), std::abort(), false;
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ namespace sprout {
|
|||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
inline bool
|
||||
inline SPROUT_NON_CONSTEXPR bool
|
||||
assertion_failed(bool cond, char const* formatted, char const* expr, char const* function, char const* file, long line) {
|
||||
return cond ? true
|
||||
: ((void)sprout::assertion_failed(sprout::assertion_info(expr, function, file, line)), false)
|
||||
|
@ -210,7 +210,7 @@ namespace sprout {
|
|||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
inline bool
|
||||
inline SPROUT_NON_CONSTEXPR bool
|
||||
assertion_failed(char const* formatted) {
|
||||
return (std::cerr << formatted << std::endl), std::abort(), false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue