aboutsummaryrefslogtreecommitdiffstats
path: root/src/floatfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index 6113758f964..d7514eca886 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -41,6 +41,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
41# define isnan(x) ((x) != (x)) 41# define isnan(x) ((x) != (x))
42#endif 42#endif
43 43
44/* Check that X is a floating point number. */
45
46static void
47CHECK_FLOAT (Lisp_Object x)
48{
49 CHECK_TYPE (FLOATP (x), Qfloatp, x);
50}
51
44/* Extract a Lisp number as a `double', or signal an error. */ 52/* Extract a Lisp number as a `double', or signal an error. */
45 53
46double 54double