P4 to Git Change 1333198 by lmoriche@lmoriche_opencl_dev on 2016/10/28 04:01:59

SWDEV-105604 - [OCL-LC-PAL] OpenCL program manager for LC on PAL
	- Suppress the assertion message box on windows by default.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/runtime.cpp#34 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#258 edit
This commit is contained in:
foreman
2016-10-28 04:06:50 -04:00
parent cf999bdd0b
commit b3c63c5fb5
2 ha cambiato i file con 9 aggiunte e 6 eliminazioni
+7 -4
Vedi File
@@ -123,9 +123,12 @@ ReferenceCountedObject::release()
static int
reportHook(int reportType, char *message, int *returnValue)
{
std::cerr << message;
::exit(3);
return TRUE;
if (returnValue) {
*returnValue = 1;
}
std::cerr << message;
::exit(3);
return TRUE;
}
#endif // DEBUG
@@ -135,7 +138,7 @@ DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
switch (reason) {
case DLL_PROCESS_ATTACH:
# ifdef DEBUG
if (AMD_OCL_SUPPRESS_MESSAGE_BOX) {
if (!AMD_OCL_ENABLE_MESSAGE_BOX) {
_CrtSetReportHook(reportHook);
_set_error_mode(_OUT_TO_STDERR);
}