Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if LL_WINDOWS
- // VC80 was optimizing the error away.
- #pragma optimize("", off)
- #endif
- void crashAndLoop(const std::string& message)
- {
- #ifdef CWDEBUG
- DoutFatal(dc::core, message);
- #else
- // Now, we go kaboom!
- int* make_me_crash = NULL;
- *make_me_crash = 0;
- while(true)
- {
- // Loop forever, in case the crash didn't work?
- }
- // this is an attempt to let Coverity and other semantic scanners know that this function won't be returning ever.
- exit(EXIT_FAILURE);
- #endif
- }
- #if LL_WINDOWS
- #pragma optimize("", on)
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement