diff options
Diffstat (limited to 'src/nvim/api/private/defs.h')
-rw-r--r-- | src/nvim/api/private/defs.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h index 2dd229ec5f..76ac23a521 100644 --- a/src/nvim/api/private/defs.h +++ b/src/nvim/api/private/defs.h @@ -8,6 +8,7 @@ #define ARRAY_DICT_INIT {.size = 0, .capacity = 0, .items = NULL} #define STRING_INIT {.data = NULL, .size = 0} #define OBJECT_INIT { .type = kObjectTypeNil } +#define ERROR_INIT { .set = false } #define REMOTE_TYPE(type) typedef uint64_t type #ifdef INCLUDE_GENERATED_DECLARATIONS @@ -16,8 +17,14 @@ #endif // Basic types +typedef enum { + kErrorTypeException, + kErrorTypeValidation +} ErrorType; + typedef struct { - char msg[256]; + ErrorType type; + char msg[1024]; bool set; } Error; |