diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-02-25 17:36:36 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-02-25 17:36:36 +1100 |
commit | 06ed6edcedf30fd8f7e036fffe8f81e8ca89d4b0 (patch) | |
tree | f5ae75e431817a53ee5725b4c0d6f3e61b15a664 /src/platform/file.h | |
parent | 109b6dd1881d90915e972f0d263a032bd262adb5 (diff) | |
parent | b5b7cea24c46d28a4b72bc18ca8ccb2d532007d3 (diff) |
Merge branch 'master' of github.com:omnisci3nce/celeritas-core
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..8bb22c8 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 |