added tlibc error handling everywhere
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user