11 lines
197 B
C
11 lines
197 B
C
#pragma once
|
|
#include "sys/panic.h"
|
|
|
|
#define assert(c, m, ...) \
|
|
if (!(c)) \
|
|
panic(m, ##__VA_ARGS__);
|
|
|
|
#define _assert(c) \
|
|
if (!(c)) \
|
|
panic("Assertion failed: " #c "\n");
|