YAVL 0.1.0
Yet Another Vector Library – still better than C++ impl. :P
Loading...
Searching...
No Matches
Error handling API

Error handling and reporting API, allowing for recovery on error, cleanup and additional safety guards before data access. More...

Classes

struct  yavl_vec_errorable_t
 A return package which contains both result code and data. More...

Enumerations

enum  yavl_vec_res_t : char { YAVL_VEC_RES_OOM = -2 , YAVL_VEC_RES_NULL , YAVL_VEC_RES_OK = 0 , YAVL_VEC_RES_FAIL }
 Operation result codes. More...

Detailed Description

Error handling and reporting API, allowing for recovery on error, cleanup and additional safety guards before data access.

Enumeration Type Documentation

◆ yavl_vec_res_t

enum yavl_vec_res_t : char

Operation result codes.

Enumerator
YAVL_VEC_RES_OOM 

Out-of-memory, allocator failures.

YAVL_VEC_RES_NULL 

Null pointer exception.

YAVL_VEC_RES_OK 

Operation success.

YAVL_VEC_RES_FAIL 

Generic operation failure.