old-libc-kernel/assert/assert.cpp
2016-07-27 15:03:29 +02:00

10 lines
No EOL
329 B
C++

#include <assert.h>
#include <base.hpp>
#include <textDISP.hpp>
extern "C" void __assert(const char *msg, const char *file, int line, int res) {
if(!res) {
MTGosHAL::err << "assert(" << msg << ") failed in " << file << " at line " << line << "!\n";
MTGosHAL::err << "Kernel panic.\n";
for(;;);
}
}