Handout
This commit is contained in:
11
kernel/debug/assert.cc
Normal file
11
kernel/debug/assert.cc
Normal file
@@ -0,0 +1,11 @@
|
||||
#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();
|
||||
}
|
||||
Reference in New Issue
Block a user