Add new kassert macro.

This commit is contained in:
Justin C. Miller
2018-04-14 18:33:48 -07:00
parent 4d5da72e2e
commit a8984350da
4 changed files with 58 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
const char digits[] = "0123456789abcdef";
console *console::default_console = nullptr;
console::console(const font &f, const screen &s, void *scratch, size_t len) :
m_font(f),
m_screen(s),
@@ -73,6 +75,9 @@ console::console(const font &f, const screen &s, void *scratch, size_t len) :
}
repaint();
if (default_console == nullptr)
default_console = this;
}
char *