mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-19 10:15:45 +01:00
implement / re-implement error-handling
This commit is contained in:
15
src/main.c
15
src/main.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user