improved error messages in TomlTable_get*

This commit is contained in:
2025-11-27 01:24:27 +05:00
parent 3e21766514
commit bdcc838bb8
3 changed files with 57 additions and 18 deletions

View File

@@ -27,11 +27,10 @@ void tlibtoml_deinit();
typedef enum TlibtomlError {
TLIBTOML_OK,
TLIBTOML_ERR,
TLIBTOML_ERR_OS,
TLIBTOML_ERR_NOMEM,
TLIBTOML_ERR_SYNTAX,
TLIBTOML_ERR_UNICODE
TLIBTOML_ERR_UNICODE,
TLIBTOML_ERR_NOT_FOUND,
TLIBTOML_ERR_UNEXPECTED_TYPE,
} TlibtomlError;
ErrorCodePage_declare(TLIBTOML);
@@ -91,6 +90,8 @@ typedef enum TomlType {
TLIBTOML_BOOLEAN,
} TomlType;
str TomlType_toStr(TomlType t);
typedef struct TomlValue {
TomlType type;
union {