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

@@ -4,9 +4,13 @@
#include "toml_internal.h"
TomlValue toml_parse_datetime(str s)
Result(void) toml_parse_datetime(str s, TomlValue* out_value)
{
Deferral(1);
(void)s;
//TODO: parse datetime
return TomlValue_new(TLIBTOML_DATETIME);
try_assert(false && "DateTime parsing is not implemented");
TomlValue value = TomlValue_new(TLIBTOML_DATETIME);
*out_value = value;
Return RESULT_VOID;
}