diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | bignum.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Mon Sep 2 07:02:10 2013 Tanaka Akira <[email protected]> + + * bignum.c (Init_Bignum): Define Bignum::GMP_VERSION when GMP is used. + Mon Sep 2 01:46:14 2013 Tanaka Akira <[email protected]> * bignum.c (big2str_generic): Reduce arguments. @@ -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(); } |