mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
* 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
This commit is contained in:
parent
58e8688f69
commit
5073155a17
4 changed files with 103 additions and 83 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue