Tchatator413
TripEnArvor instant messaging protocol - JSON-based
Loading...
Searching...
No Matches
errstatus.h
Go to the documentation of this file.
1
5
6#ifndef ERRSTATUS_H
7#define ERRSTATUS_H
8
11#include <stdbool.h>
24
25_Static_assert(errstatus_error == false, "errstatus_error must equal to false for boolean logic");
26_Static_assert(errstatus_ok == true, "errstatus_ok must be true for boolean logic");
27_Static_assert(errstatus_handled == -1, "errstatus_ok must be -1 (Unix error convention)");
28
29#endif // ERRSTATUS_H
errstatus_t
An error status.
Definition errstatus.h:12
@ max_errstatus
Largest value of the enumeration.
Definition errstatus.h:22
@ errstatus_ok
No error. Can be shadowed by the payload value in supertypes.
Definition errstatus.h:20
@ errstatus_handled
An error occured but it has already been handled, no action needed besides propagation.
Definition errstatus.h:14
@ min_errstatus
Smallest value of the enuemration.
Definition errstatus.h:16
@ errstatus_error
An error occurred.
Definition errstatus.h:18