diff options
Diffstat (limited to 'cutl/details/boost/assert.hpp')
-rw-r--r-- | cutl/details/boost/assert.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cutl/details/boost/assert.hpp b/cutl/details/boost/assert.hpp index a33e398..30e6d14 100644 --- a/cutl/details/boost/assert.hpp +++ b/cutl/details/boost/assert.hpp @@ -101,7 +101,12 @@ namespace cutl_details_boost << "***** Internal Program Error - assertion (" << expr << ") failed in " << function << ":\n" << file << '(' << line << "): " << msg << std::endl; - std::abort(); + #ifdef UNDER_CE + // The Windows CE CRT library does not have abort() so use exit(-1) instead. + std::exit(-1); + #else + std::abort(); + #endif } } // detail } // assertion |