divide main.c into multiple modules

This commit is contained in:
2025-03-20 10:56:10 +01:00
parent 99cb3398bf
commit b017f503eb
7 changed files with 126 additions and 89 deletions

7
src/error.h Normal file
View File

@@ -0,0 +1,7 @@
#pragma once
#include <stdarg.h>
#include <stdint.h>
#include <stdnoreturn.h>
// prints an error message and aborts execution
noreturn void fatal(char const*, ...);