diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-09-18 19:46:38 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2024-09-18 19:57:20 +0330 |
commit | d6ba30b94a24607bce5db5e706eb20cc051a98f0 (patch) | |
tree | 146e74b0bc2e1636451257015210e3c7d1a0ecab /src/utils/types.h |
initial commit
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 |