diff options
| author | gingerBill <bill@gingerbill.org> | 2024-02-09 15:18:29 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-02-09 15:18:29 +0000 |
| commit | 5c4485f65767366c14dfd9a98945a5479ae0e449 (patch) | |
| tree | 94ee4b5181c381f45332b27fb37d78b5464c6bde /base | |
| parent | bae2a6fc1e0d2207e51a66b5ea6e8ae511a3da6a (diff) | |
Add `#load_directory(path: string) > []runtime.Load_Directory_File`
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/core.odin | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/base/runtime/core.odin b/base/runtime/core.odin index fbdf33085..85e64242d 100644 --- a/base/runtime/core.odin +++ b/base/runtime/core.odin @@ -296,6 +296,14 @@ Source_Code_Location :: struct { procedure: string, } +/* + Used by the built-in directory `#load_directory(path: string) -> []Load_Directory_File` +*/ +Load_Directory_File :: struct { + name: string, + data: []byte, // immutable data +} + Assertion_Failure_Proc :: #type proc(prefix, message: string, loc: Source_Code_Location) -> ! // Allocation Stuff |