aboutsummaryrefslogtreecommitdiff
path: root/eval.cpp
diff options
context:
space:
mode:
authorTeddy <[email protected]>2013-08-09 23:50:42 +0800
committerTeddy <[email protected]>2013-08-09 23:50:42 +0800
commit80e885a9847c9bce1be8cccafc85ea39cbc120e2 (patch)
tree5976ed008996012f23d1eeb8765a8a859e62f64c /eval.cpp
parent1985734990b5c5ab3fd50277bff854ea3cd92b2c (diff)
numerical overflow detection
Diffstat (limited to 'eval.cpp')
-rw-r--r--eval.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/eval.cpp b/eval.cpp
index 323c4c9..369a150 100644
--- a/eval.cpp
+++ b/eval.cpp
@@ -35,6 +35,10 @@ void Evaluator::add_builtin_routines() {
ADD_BUILTIN_PROC("exact?", num_is_exact);
ADD_BUILTIN_PROC("inexact?", num_is_inexact);
ADD_BUILTIN_PROC("number?", is_number);
+ ADD_BUILTIN_PROC("complex?", is_complex);
+ ADD_BUILTIN_PROC("real?", is_real);
+ ADD_BUILTIN_PROC("rational?", is_rational);
+ ADD_BUILTIN_PROC("integer?", is_integer);
ADD_BUILTIN_PROC("not", bool_not);
ADD_BUILTIN_PROC("boolean?", is_boolean);