1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bignum.c (Init_Bignum): Define Bignum::GMP_VERSION when GMP is used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-09-01 22:04:35 +00:00
parent c48e169fb9
commit 0effd06122
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Mon Sep 2 07:02:10 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (Init_Bignum): Define Bignum::GMP_VERSION when GMP is used.
Mon Sep 2 01:46:14 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (big2str_generic): Reduce arguments.

View file

@ -6752,5 +6752,9 @@ Init_Bignum(void)
rb_define_method(rb_cBignum, "odd?", rb_big_odd_p, 0);
rb_define_method(rb_cBignum, "even?", rb_big_even_p, 0);
#ifdef USE_GMP
rb_define_const(rb_cBignum, "GMP_VERSION", rb_sprintf("GMP %s", gmp_version));
#endif
power_cache_init();
}