Skip to content

Commit 637767f

Browse files
committed
Flush nout before inducing crash in assert-abort
1 parent 1808ad2 commit 637767f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dtool/src/prc/notify.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@ assert_failure(const char *expression, int line,
405405
// so we can guarantee it has already been constructed.
406406
ALIGN_16BYTE ConfigVariableBool assert_abort("assert-abort", false);
407407
if (assert_abort) {
408+
// Make sure the error message has been flushed to the output.
409+
nout.flush();
410+
408411
#ifdef WIN32
409412
// How to trigger an exception in VC++ that offers to take us into
410413
// the debugger? abort() doesn't do it. We used to be able to

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy