This commit is contained in:
Eggert Jung
2025-05-06 18:07:37 +02:00
parent 35c2667fbf
commit 5846351aed
7 changed files with 19 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
#include "assert.h"
#include "output.h"
[[noreturn]] void assertion_failed(const char* exp, const char* func,
const char* file, int line) {
@@ -6,6 +7,7 @@
(void)func;
(void)file;
(void)line;
DBG << "Assertion failed: " << exp << "\nin function: " << func << "\nfrom file: \"" << file << "\" in line " << line << flush;
// TODO: Print error message (in debug window)
// TODO: Then stop the current core permanently
// Use appropriate method from class Core to do so.