diff options
author | muraken <muraken@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-28 10:08:22 +0000 |
---|---|---|
committer | muraken <muraken@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-28 10:08:22 +0000 |
commit | 5073155a178a9f478950afef4f148e44fd14b5d6 (patch) | |
tree | 83edec3cce4786cea435ac932fb503fdaea17bc6 /include/ruby | |
parent | 58e8688f69776eb891abf9980d204015c3fddb1d (diff) |
* math.c (rb_eMathDomainError): new exception class for representing mathematical domain error instead of Errno::EDOM.
* math.c (domain_check, infinity_check): removed, no longer needed.
* math.c (math_atan2, math_acos, math_asin, math_acosh, math_atanh, math_log, math_log2, math_log10, math_sqrt, math_gamma, math_lgamma): mathematical domain errors are checked and raised before calling libm's functions.
* test/ruby/test_math.rb: updated for changes of maht.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 5d87c0dbba..d56d42c86e 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1234,6 +1234,8 @@ RUBY_EXTERN VALUE rb_eNameError; RUBY_EXTERN VALUE rb_eSyntaxError; RUBY_EXTERN VALUE rb_eLoadError; +RUBY_EXTERN VALUE rb_eMathDomainError; + RUBY_EXTERN VALUE rb_stdin, rb_stdout, rb_stderr; static inline VALUE |