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