blob: 554c7dcb5e37abf47579b3ce4104d5295df8c5d0 (
plain)
1
2
3
4
5
6
|
#pragma once
#include <generic/arch.hpp>
#include <klibc/stdio.hpp>
#define assert(cond, msg,...) if(!(cond)) { klibc::printf("Failed assert at %s:%s:%d \"" msg "\"\n" , __FILE__ ,__FUNCTION__, __LINE__ , ##__VA_ARGS__); arch::panic((char*)"Failed assert"); }
|