A toy operating system written in C.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#pragma once
|
|
|
|
#define ASSERT(cond, msg) \
|
|
if (!(cond)) { \
|
|
kernel_panic(msg " (assertion: " #cond ")", __FILE__, __LINE__); \
|
|
}
|
|
|
|
void kernel_panic(const char *msg, const char *file, int line);
|
|
|