added tlibc error handling everywhere

This commit is contained in:
2025-11-26 16:42:28 +05:00
parent 048542d079
commit 2082d56c25
27 changed files with 374 additions and 308 deletions

View File

@@ -15,6 +15,10 @@ extern "C" {
#include "tlibc/string/str.h"
#include "tlibc/collections/HashMap.h"
Result(void) tlibtoml_init();
void tlibtoml_deinit();
typedef DateTime TomlDateTime;
typedef HashMap(TomlValue) TomlTable;
@@ -123,7 +127,9 @@ TomlValue TomlValue_new_float(f64 flt);
TomlValue TomlValue_new_datetime(void);
TomlValue TomlValue_new_bool(bool b);
/// copies the string
TomlValue TomlValue_new_string(str s);
TomlValue TomlValue_copy_str(str s);
/// doesnt copy the string
TomlValue TomlValue_move_str(str s);
void TomlValue_destroy(TomlValue* self);
#ifdef __cplusplus