1 /* Test of <fenv.h> substitute in C++ mode.
2 Copyright (C) 2023-2024 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
19 #define GNULIB_NAMESPACE gnulib
24 #include "signature.h"
27 #if GNULIB_TEST_FEGETENV
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::fegetenv
, int, (fenv_t
*));
31 #if GNULIB_TEST_FESETENV
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::fesetenv
, int, (fenv_t
const *));
35 #if GNULIB_TEST_FEUPDATEENV
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::feupdateenv
, int, (fenv_t
const *));
39 #if GNULIB_TEST_FEHOLDEXCEPT
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::feholdexcept
, int, (fenv_t
*));
43 #if GNULIB_TEST_FEGETROUND
44 SIGNATURE_CHECK (GNULIB_NAMESPACE::fegetround
, int, (void));
47 #if GNULIB_TEST_FESETROUND
48 SIGNATURE_CHECK (GNULIB_NAMESPACE::fesetround
, int, (int));
51 #if GNULIB_TEST_FECLEAREXCEPT
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::feclearexcept
, int, (int));
55 #if GNULIB_TEST_FERAISEEXCEPT
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::feraiseexcept
, int, (int));
59 #if GNULIB_TEST_FETESTEXCEPT
60 SIGNATURE_CHECK (GNULIB_NAMESPACE::fetestexcept
, int, (int));
63 #if GNULIB_TEST_FESETEXCEPT
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::fesetexcept
, int, (int));
67 #if GNULIB_TEST_FEENABLEEXCEPT
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::feenableexcept
, int, (int));
71 #if GNULIB_TEST_FEDISABLEEXCEPT
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::fedisableexcept
, int, (int));
75 #if GNULIB_TEST_FEGETEXCEPT
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::fegetexcept
, int, (void));
79 #if GNULIB_TEST_FEGETEXCEPTFLAG
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::fegetexceptflag
, int, (fexcept_t
*, int));
83 #if GNULIB_TEST_FESETEXCEPTFLAG
84 SIGNATURE_CHECK (GNULIB_NAMESPACE::fesetexceptflag
, int, (fexcept_t
const *, int));
87 #if GNULIB_TEST_FETESTEXCEPTFLAG
88 SIGNATURE_CHECK (GNULIB_NAMESPACE::fetestexceptflag
, int, (fexcept_t
const *, int));