Files
os-in-1000-lines/kernel.h
2025-07-18 12:36:18 +03:00

13 lines
490 B
C

#pragma once
struct sbiret {
long error;
long value;
};
#define PANIC(fmt, ...) \
do { \
printf("YOU GOT A PANIC ERROR: %s:%d: " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
while (1) {} \
} while (0)