diff options
author | José Fonseca <[email protected]> | 2014-06-03 18:08:34 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2014-06-04 10:25:08 +0100 |
commit | 122e23249583d233e8a988abe95dcb5d76fa6b98 (patch) | |
tree | 7de365da329a1a35fad5e05fc7f1249a89f7cd4f /src/gallium/auxiliary/util/u_debug.h | |
parent | 7e0dd80f11eae748be4c4e13916c110e4a0ff45d (diff) |
wgl: Disable CRT message boxes when Windows system error messages boxes are disabled.
At least on MSVC we statically link against the CRT, so we must disable
the CRT message boxes if we want unattended testing.
The messages are convenient when running manually, so let them be if the
system error message boxes are not disabled.
Diffstat (limited to 'src/gallium/auxiliary/util/u_debug.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_debug.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index 9c414211b3f..badd5e296f6 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gallium/auxiliary/util/u_debug.h @@ -139,6 +139,15 @@ void debug_print_format(const char *msg, unsigned fmt ); /** + * Disable interactive error message boxes. + * + * Should be called as soon as possible for effectiveness. + */ +void +debug_disable_error_message_boxes(void); + + +/** * Hard-coded breakpoint. */ #ifdef DEBUG |