2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2019-02-27 18:39:32 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/debug_helpers.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2020-01-16 17:43:31 +08:00
|
|
|
#include <stdexcept>
|
|
|
|
#include <string>
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
void debugBreak(int line, const char *file) {
|
|
|
|
}
|
|
|
|
void abortUnrecoverable(int line, const char *file) {
|
2020-01-16 17:43:31 +08:00
|
|
|
std::string message = "Abort was called at " + std::to_string(line) + " line in file " + file;
|
|
|
|
throw std::runtime_error(message);
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
2020-01-16 17:43:31 +08:00
|
|
|
} // namespace NEO
|