mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 11:29:10 +00:00
(svn r17001) -Codechange: replace some more assert(0)s to NOT_REACHED() and document why they (assert(0)) have to stay for the remaining cases.
This commit is contained in:
@@ -116,6 +116,8 @@ void CDECL error(const char *s, ...)
|
||||
ShowOSErrorBox(buf, true);
|
||||
if (_video_driver != NULL) _video_driver->Stop();
|
||||
|
||||
/* Don't go into NOT_REACHED here; NOT_REACHED is using error, so
|
||||
* using it would result in an infinite loop instead of errors. */
|
||||
assert(0);
|
||||
exit(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user