cvx
Loading...
Searching...
No Matches
flags.h
Go to the documentation of this file.
1#ifndef CVX_FLAGS_H
2#define CVX_FLAGS_H
3
24
30// clang-format off
31static const char *cvx_flags_str[] = {
32 "OK", // 0
33 "WRONG_TAG", // 1
34 "ALLOC", // 2
35 "EMPTY", // 3
36 "FULL", // 4
37 "RANGE", // 5
38 "NOT_FOUND", // 6
39 "INVALID", // 7
40 "DUPLICATE", // 8
41 "ERROR", // 9
42 "VTAB", // 10
43};
44// clang-format on
45
51// clang-format off
52static const char *cvx_flags_description[] = {
53 "No error", // 0
54 "Wrong container type for this function", // 1
55 "Allocation failed", // 2
56 "The container is empty when it should not be", // 3
57 "Container is full", // 4
58 "Index out of range", // 5
59 "Key or value not found", // 6
60 "Invalid argument or operation", // 7
61 "Duplicate key or value", // 8
62 "Generic or unknown error", // 9
63 "Required VTAB function missing", // 10
64};
65// clang-format on
66
67#endif /* CVX_FLAGS_H */
cvx_flags
binary_heap.h
Definition binary_heap.h:78
@ CVX_FLAG_DUPLICATE
Duplicate key or value.
Definition flags.h:21
@ CVX_FLAG_INVALID
Invalid argument or operation.
Definition flags.h:20
@ CVX_FLAG_NOT_FOUND
Key or value not found.
Definition flags.h:19
@ CVX_FLAG_ALLOC
Allocation failed.
Definition flags.h:15
@ CVX_FLAG_FULL
When a container that doesn't resize is full.
Definition flags.h:17
@ CVX_FLAG_OK
No errors.
Definition flags.h:12
@ CVX_FLAG_RANGE
Index out of range.
Definition flags.h:18
@ CVX_FLAG_EMPTY
Operation can not proceed because the container is empty.
Definition flags.h:16
@ CVX_FLAG_VTAB
Required vtab function was not provided.
Definition flags.h:13
@ CVX_FLAG_WRONG_TAG
Tags are checked so you don't pass the wrong struct to a function.
Definition flags.h:14
@ CVX_FLAG_ERROR
Generic error, or unknown error.
Definition flags.h:22