implement / re-implement error-handling

This commit is contained in:
2025-02-13 14:51:01 +01:00
parent 70413c38c8
commit a91f26259e
5 changed files with 107 additions and 3 deletions

View File

@@ -1,8 +1,17 @@
#include "main.h"
#include <stdint.h>
#include <stdio.h>
#include "error_handling.h"
static gamestatus status = STATUS_RUNNING;
void set_gamestatus(gamestatus new_status) {
status = new_status;
}
int32_t main(int32_t argc, char** argv) {
(void)argc, (void)argv;
printf("%s\n", "Hello, World!");
return 0;
debug("%s", "Hello, World!");
return status;
}