Fix enums

This commit is contained in:
Krzosa Karol
2023-12-31 10:14:29 +01:00
parent 3ae64b8b30
commit dcb9a9bfaa
6 changed files with 13 additions and 19 deletions

5
io.h
View File

@@ -1,7 +1,6 @@
#ifndef IO_HEADER
#define IO_HEADER
#include <stdbool.h>
typedef enum IO_ErrorResult IO_ErrorResult;
#ifndef IO_API
#ifdef __cplusplus
@@ -11,11 +10,11 @@ typedef enum IO_ErrorResult IO_ErrorResult;
#endif
#endif
enum IO_ErrorResult {
typedef enum IO_ErrorResult {
IO_ErrorResult_Continue,
IO_ErrorResult_Break,
IO_ErrorResult_Exit,
};
} IO_ErrorResult;
#ifdef _WIN32
#define IO_DebugBreak() (__debugbreak(), 0)