added some error check scripts
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -859,6 +859,14 @@ typedef struct hcl_t hcl_t;
|
||||
# define HCL_UNUSED
|
||||
#endif
|
||||
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202311L)
|
||||
# define HCL_NORETURN noreturn
|
||||
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||
# define HCL_NORETURN _Noreturn
|
||||
#else
|
||||
# define HCL_NORETURN
|
||||
#endif
|
||||
|
||||
/**
|
||||
* The HCL_TYPE_IS_SIGNED() macro determines if a type is signed.
|
||||
* \code
|
||||
@ -1077,7 +1085,9 @@ typedef struct hcl_t hcl_t;
|
||||
#define HCL_STATIC_JOIN_INNER(x, y) x ## y
|
||||
#define HCL_STATIC_JOIN(x, y) HCL_STATIC_JOIN_INNER(x, y)
|
||||
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202311L)
|
||||
# define HCL_STATIC_ASSERT(expr) static_assert (expr, "invalid assertion")
|
||||
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||
# define HCL_STATIC_ASSERT(expr) _Static_assert (expr, "invalid assertion")
|
||||
#elif defined(__cplusplus) && (__cplusplus >= 201103L)
|
||||
# define HCL_STATIC_ASSERT(expr) static_assert (expr, "invalid assertion")
|
||||
|
@ -2369,12 +2369,14 @@ HCL_EXPORT int hcl_decode (
|
||||
);
|
||||
|
||||
#if defined(HCL_HAVE_INLINE)
|
||||
static HCL_INLINE hcl_oow_t hcl_getbclen (hcl_t* hcl) { return hcl->code.bc.len; }
|
||||
static HCL_INLINE hcl_oow_t hcl_getlflen (hcl_t* hcl) { return hcl->code.lit.len; }
|
||||
static HCL_INLINE hcl_ooi_t hcl_getip (hcl_t* hcl) { return hcl->ip; }
|
||||
static HCL_INLINE hcl_oow_t hcl_getbclen (hcl_t* hcl) { return hcl->code.bc.len; }
|
||||
static HCL_INLINE hcl_oow_t hcl_getlflen (hcl_t* hcl) { return hcl->code.lit.len; }
|
||||
static HCL_INLINE hcl_oow_t hcl_getngtmprs (hcl_t* hcl) { return hcl->code.ngtmprs; }
|
||||
static HCL_INLINE hcl_ooi_t hcl_getip (hcl_t* hcl) { return hcl->ip; }
|
||||
#else
|
||||
# define hcl_getbclen(hcl) ((hcl)->code.bc.len)
|
||||
# define hcl_getlflen(hcl) ((hcl)->code.lit.len)
|
||||
# define hcl_getngtmprs(hcl) ((hcl)->code.ngtmprs)
|
||||
# define hcl_getip(hcl) ((hcl)->ip)
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user