diff options
Diffstat (limited to 'src/platform/file.h')
-rw-r--r-- | src/platform/file.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/platform/file.h b/src/platform/file.h index b965ceb..fa09891 100644 --- a/src/platform/file.h +++ b/src/platform/file.h @@ -6,6 +6,14 @@ */ #pragma once -#include <stdbool.h> +#include "defines.h" +#include "str.h" + +typedef struct str8_opt { + str8 contents; + bool has_value; +} str8_opt; const char* string_from_file(const char* path); + +str8_opt str8_from_file(arena* a, str8 path);
\ No newline at end of file |