9#include <cjson/cJSON.h>
21#if (defined(__clang__) || defined(__GNUC__)) && defined(USE_128BIT_ERRCODE)
31#if (defined(__clang__) || defined(__GNUC__)) && defined(USE_128BIT_ERRCODE)
52#if (defined(__clang__) || defined(__GNUC__)) && defined(USE_128BIT_ERRCODE)
64#if (defined(__clang__) || defined(__GNUC__)) && defined(USE_128BIT_ERRCODE)
65 unsigned __int128 err_u128;
87static inline bool cwist_error_is_ok(
const cwist_error_t *err) {
88 if (!err)
return true;
100 default:
return false;
@ CWIST_ERR_STRING
string types
@ CWIST_ERR_INT16
used when checking common errcodes in Unix/Linux
@ CWIST_ERR_UINT8
mostly used as 'byte'
@ CWIST_ERR_INT8
mostly used to check a char
bool cwist_error_is_ok_extern(const cwist_error_t *err)
Out-of-line cwist_error_is_ok(); see include/cwist/sys/err/cwist_err.h.
struct cwist_error_t cwist_error_t
cwist_error_t make_error(cwist_errtype_t type)
Creates an error object initialized with the specified type.
struct __prim_cwist_error_t __prim_cwist_error_t
Internal union-like structure to store the actual error value.
struct cwist_sstring * err_string
Integrated error structure used throughout the system.
__prim_cwist_error_t error
cwist_errtype_t
Enumeration to identify the physical type of error data.