assert.cc 350 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "assert.h"

#include "debug/output.h"
#include "device/cgastr.h"
#include "machine/cpu.h"

[[noreturn]] void assertion_failed(const char * exp, const char * func, const char * file, int line){
	DBG << "Assertion '" << exp << "' failed (" << func << " @ " << file
	    << ":" << line << ") - CPU stopped." << endl;
	CPU::die();
	while(1);
}