1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Move kprintf to its own file. It has nothing to do with VGA anymore.

This commit is contained in:
Andreas Kling 2018-10-22 13:20:35 +02:00
parent 702d308e67
commit bae59609e3
7 changed files with 188 additions and 187 deletions

View file

@ -1,6 +1,6 @@
#pragma once
#include "VGA.h"
#include "kprintf.h"
#define CRASH() do { asm volatile("ud2"); } while(0)
#define ASSERT(x) do { if (!(x)) { kprintf("ASSERTION FAILED: " #x "\n%s:%u in %s\n", __FILE__, __LINE__, __PRETTY_FUNCTION__); CRASH(); } } while(0)