Add basic logging functionality
All checks were successful
Release / release (push) Successful in 6s

This commit is contained in:
2026-05-17 18:40:10 +01:00
parent 2e5163ba33
commit c67a448d00
9 changed files with 169 additions and 2 deletions

View File

@@ -34,9 +34,18 @@ typedef enum {
FILE_SEEK_ORIGIN_COUNT,
} FileSeekOrigin;
// Return value should not be cached as it's not guaranteed to remain the same. Always call
// wapp_file_stdin to get the standard input stream
wapp_extern WFile *wapp_file_stdin(void);
// Return value should not be cached as it's not guaranteed to remain the same. Always call
// wapp_file_stdout to get the standard output stream
wapp_extern WFile *wapp_file_stdout(void);
// Return value should not be cached as it's not guaranteed to remain the same. Always call
// wapp_file_stderr to get the standard error stream
wapp_extern WFile *wapp_file_stderr(void);
WFile *wapp_file_open(const Allocator *allocator, Str8RO *filepath, FileAccessMode mode);
i64 wapp_file_get_current_position(WFile *file);
i64 wapp_file_seek(WFile *file, i64 offset, FileSeekOrigin origin);