diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-02-02 13:25:45 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-02-02 13:25:45 -0500 |
| commit | 24f39222098253da4ad1a9cd8ddef5b9b0152ba1 (patch) | |
| tree | 36eede312e7dcb4a9afe49342fba996ef273549d /src/_safety.h | |
| parent | 6aebe0dbfc24f0af73eb422b4748a9b35df5b435 (diff) | |
use UNDEFINED() instead of directly calling __undefined()
Diffstat (limited to 'src/_safety.h')
| -rw-r--r-- | src/_safety.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/_safety.h b/src/_safety.h index 15076cc8..37b66915 100644 --- a/src/_safety.h +++ b/src/_safety.h @@ -30,7 +30,7 @@ extern struct __checked_call { #define ASSERT_NONNULL(__ptr) do { \ if (!__ptr) { \ - __undefined("In call to %s(), parameter %s cannot be NULL", __func__, #__ptr); \ + UNDEFINED("In call to %s(), parameter %s cannot be NULL", __func__, #__ptr); \ } \ } while (0) @@ -38,14 +38,14 @@ extern struct __checked_call { char *__s1 = (char*)(__p1); \ char *__s2 = (char*)(__p2); \ if (((__s1 < __s2) && ((__s1 + (__l1)) >= __s2)) || ((__s1 > __s2) && ((__s2 + (__l2)) >= __s1))) { \ - __undefined("In call to %s(), parameters %s and %s overlap", __func__, #__p1, #__p2); \ + UNDEFINED("In call to %s(), parameters %s and %s overlap", __func__, #__p1, #__p2); \ } \ } while (0) #define SIGNAL_SAFE(__n) do { \ if (__n == 0 && ___signal.current != 0) { \ int _sig = ___signal.current; \ - __undefined("Function %s() is not safe to call from a signal handler (signal %d)", __func__, _sig); \ + UNDEFINED("Function %s() is not safe to call from a signal handler (signal %d)", __func__, _sig); \ } \ } while (0) |
