Ruby
4.1.0dev (2026-10-01 revision 4f9ec01a51de89f41347804a2f8ea8a9159b0461)
prism
internal
isinf.h
1
#ifndef PRISM_INTERNAL_ISINF_H
2
#define PRISM_INTERNAL_ISINF_H
3
4
/*
5
* isinf on POSIX systems accepts a float, a double, or a long double. But mingw
6
* didn't provide an isinf macro, only an isinf function that only accepts
7
* floats, so we need to use _finite instead.
8
*/
9
#ifdef __MINGW64__
10
#include <float.h>
11
#define PRISM_ISINF(x) (!_finite(x))
12
#else
13
#define PRISM_ISINF(x) isinf(x)
14
#endif
15
16
#endif
Generated by
1.9.8