diff options
Diffstat (limited to 'src/floatfns.c')
| -rw-r--r-- | src/floatfns.c | 8 |
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 | |||
| 46 | static void | ||
| 47 | CHECK_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 | ||
| 46 | double | 54 | double |