From 79551f5c04d20990e64b26bf577f70eeaeb38652 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 14 Nov 2023 12:56:01 -0500 Subject: enable UB-testing for isupper() --- src/_assert.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/_assert.h') diff --git a/src/_assert.h b/src/_assert.h index 0da010ab..4c71f2f6 100644 --- a/src/_assert.h +++ b/src/_assert.h @@ -1,9 +1,8 @@ #ifndef ___ASSERT_H__ #define ___ASSERT_H__ -#ifndef NDEBUG -#define NDEBUG -#endif +#include "stdlib/_stdlib.h" +#include "errno/ERANGE.h" #ifndef NDEBUG #define ASSERT_NONNULL(__ptr) do { \ @@ -34,7 +33,7 @@ _ci.func = __func__; \ __stdlib.constraint_handler("Undefined behavior: " \ "Paramater " #_n " must be representable as a " #_type \ - "or be equal to " #_sentinel, &_ci, ERANGE); \ + " or be equal to " #_sentinel, &_ci, ERANGE); \ } else if (_n < _min || _n > _max) { \ struct __constraint_info _ci = {0}; \ _ci.func = __func__; \ -- cgit v1.2.1