diff options
Diffstat (limited to 'libs/libopus/silk/typedef.h')
-rw-r--r-- | libs/libopus/silk/typedef.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/libopus/silk/typedef.h b/libs/libopus/silk/typedef.h index 97b7e709b..793d2c0c1 100644 --- a/libs/libopus/silk/typedef.h +++ b/libs/libopus/silk/typedef.h @@ -67,6 +67,9 @@ __attribute__((noreturn)) static OPUS_INLINE void _silk_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(); } # define silk_assert(COND) {if (!(COND)) {silk_fatal("assertion failed: " #COND);}} |