From 683f3b18d536f2f000d217f241967f2520ba7593 Mon Sep 17 00:00:00 2001 From: red031000 Date: Mon, 31 Aug 2020 18:11:34 +0100 Subject: error_handling --- include/error_handling.h | 6 ++++++ include/global.h | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 include/error_handling.h (limited to 'include') diff --git a/include/error_handling.h b/include/error_handling.h new file mode 100644 index 00000000..1299fcba --- /dev/null +++ b/include/error_handling.h @@ -0,0 +1,6 @@ +#ifndef POKEDIAMOND_ERROR_HANDLING_H +#define POKEDIAMOND_ERROR_HANDLING_H + +void ErrorHandling(void); + +#endif //POKEDIAMOND_ERROR_HANDLING_H diff --git a/include/global.h b/include/global.h index 3b377e5e..e0e8cb22 100644 --- a/include/global.h +++ b/include/global.h @@ -8,11 +8,10 @@ #include "nitro.h" #include "global.fieldmap.h" #include "constants/global.h" +#include "error_handling.h" #define NELEMS(a) (sizeof(a) / sizeof(*(a))) -extern void ErrorHandling(void); - #define GF_ASSERT(expr) do {if (!(expr)) ErrorHandling();} while (0) #ifndef IN_MAIN_C -- cgit v1.2.3