Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/celt
diff options
context:
space:
mode:
authorMarcus Asteborg <maastebo@microsoft.com>2020-06-08 07:16:12 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2020-06-11 20:43:40 +0300
commitfe00017a06ddf9314ce79a83a60ae6333769bb24 (patch)
tree7d84f78503db647d66c2a17c6b968fcd4b7cee6f /celt
parentf014317fb10448e5f4b2f80eb819f6ffdf7815f5 (diff)
Disable message box when calling abort(). The message box is causing hangs in tests.
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'celt')
-rw-r--r--celt/arch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/celt/arch.h b/celt/arch.h
index 08b07db5..3845c3a0 100644
--- a/celt/arch.h
+++ b/celt/arch.h
@@ -73,6 +73,9 @@ __attribute__((noreturn))
void celt_fatal(const char *str, const char *file, int line)
{
fprintf (stderr, "Fatal (internal) error in %s, line %d: %s\n", file, line, str);
+#if defined(_MSC_VER)
+ _set_abort_behavior( 0, _WRITE_ABORT_MSG);
+#endif
abort();
}
#endif