| 1 | /* $Id: CoinError.cpp 1373 2011-01-03 23:57:44Z lou $ */ |
| 2 | // Copyright (C) 2005, International Business Machines |
| 3 | // Corporation and others. All Rights Reserved. |
| 4 | // This code is licensed under the terms of the Eclipse Public License (EPL). |
| 5 | |
| 6 | #include "CoinError.hpp" |
| 7 | |
| 8 | bool CoinError::printErrors_ = false; |
| 9 | |
| 10 | /** A function to block the popup windows that windows creates when the code |
| 11 | crashes */ |
| 12 | #ifdef HAVE_WINDOWS_H |
| 13 | #include <windows.h> |
| 14 | void WindowsErrorPopupBlocker() |
| 15 | { |
| 16 | SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX); |
| 17 | } |
| 18 | #else |
| 19 | void () {} |
| 20 | #endif |
| 21 | |