From 78033913abfce71b1bcc075ed188c6b6ec087a13 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 31 Jan 2024 14:48:09 -0500 Subject: add checks for valid exception masks --- src/fenv/feraiseexcept.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/fenv/feraiseexcept.c') diff --git a/src/fenv/feraiseexcept.c b/src/fenv/feraiseexcept.c index cc40934b..4640ecbf 100644 --- a/src/fenv/feraiseexcept.c +++ b/src/fenv/feraiseexcept.c @@ -1,12 +1,15 @@ #include -#include "_safety.h" +#include "_fenv.h" int feraiseexcept(int excepts) { SIGNAL_SAFE(0); + ASSERT_VALID_EXCEPTION_MASK(excepts); return excepts; } +CHECK_1(int, 0, feraiseexcept, int) + /* The feraiseexcept function raises the supported floating-point exceptions represented by its argument. 178) The order in which these floating-point exceptions are -- cgit v1.2.1