diff options
Diffstat (limited to 'src/utils/types.h')
-rw-r--r-- | src/utils/types.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/utils/types.h b/src/utils/types.h new file mode 100644 index 0000000..df4d8b3 --- /dev/null +++ b/src/utils/types.h @@ -0,0 +1,18 @@ +#pragma once + +#include <stdint.h> +#include <stdio.h> + +#ifndef __cplusplus + #if (__STDC_VERSION__ < 202000L) + #include <stdint.h> +typedef enum bool : uint8_t { false = 0, true = 1 } bool; + #endif +#endif + +typedef struct SizedString { + char *str; + size_t size; +} SizedString; + +#define ERROR_SIZE INT64_MAX |