diff options
| author | Jakob Kaivo <jkk@ung.org> | 2023-11-14 12:56:01 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2023-11-14 12:56:01 -0500 |
| commit | 79551f5c04d20990e64b26bf577f70eeaeb38652 (patch) | |
| tree | cf9211c4ddf105221ca33a193cbbe3eb6851eea1 /src/_assert.h | |
| parent | 9e22ec98f4132300301d32f033b2c4d6e4ff5c1d (diff) | |
enable UB-testing for isupper()
Diffstat (limited to 'src/_assert.h')
| -rw-r--r-- | src/_assert.h | 7 |
1 files changed, 3 insertions, 4 deletions
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__; \ |
