Add composable logger core utilities

This commit is contained in:
Nanaloveyuki
2026-05-08 16:24:20 +08:00
parent fb8dea8cfb
commit 50013f7f0d
11 changed files with 928 additions and 18 deletions
+31
View File
@@ -0,0 +1,31 @@
pub struct FileHandle {
path : String
}
fn open_file_handle_internal(path : String, append : Bool) -> FileHandle? {
ignore(append)
ignore(path)
let _unused : FileHandle = { path: "" }
ignore(_unused)
None
}
fn write_file_handle_internal(handle : FileHandle, content : String) -> Bool {
ignore(handle)
ignore(content)
false
}
fn flush_file_handle_internal(handle : FileHandle) -> Bool {
ignore(handle)
false
}
fn close_file_handle_internal(handle : FileHandle) -> Bool {
ignore(handle)
false
}
fn native_files_supported_internal() -> Bool {
false
}