12 lines
322 B
C++
12 lines
322 B
C++
#include "assert.h"
|
|
|
|
#include "../arch/core.h"
|
|
#include "./output.h"
|
|
|
|
[[noreturn]] void assertion_failed(const char* exp, const char* func,
|
|
const char* file, int line) {
|
|
DBG << "Assertion '" << exp << "' failed (" << func << " @ " << file << ":"
|
|
<< dec << line << ") - CPU stopped." << endl;
|
|
Core::die();
|
|
}
|