mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
27 lines
634 B
C++
27 lines
634 B
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/helpers/debug_helpers.h"
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
|
|
#include <assert.h>
|
|
#include <cstdio>
|
|
|
|
namespace NEO {
|
|
void debugBreak(int line, const char *file) {
|
|
if (DebugManager.flags.EnableDebugBreak.get()) {
|
|
printf("Assert was called at %d line in file:\n%s\n", line, file);
|
|
assert(false);
|
|
}
|
|
}
|
|
void abortUnrecoverable(int line, const char *file) {
|
|
printf("Abort was called at %d line in file:\n%s\n", line, file);
|
|
abortExecution();
|
|
}
|
|
} // namespace NEO
|