improved error messages in TomlTable_get*
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user