mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Respect BIGNUM_DEBUG defined by command line option
And fixed typo in compilers.yml.
This commit is contained in:
parent
07b2102a88
commit
b8fadf3a6b
2 changed files with 5 additions and 2 deletions
2
.github/workflows/compilers.yml
vendored
2
.github/workflows/compilers.yml
vendored
|
@ -92,7 +92,7 @@ jobs:
|
|||
- { key: cppflags, name: NDEBUG, value: '-DNDEBUG' }
|
||||
- { key: cppflags, name: RUBY_DEBUG, value: '-DRUBY_DEBUG' }
|
||||
- { key: cppflags, name: ARRAY_DEBUG, value: '-DARRAY_DEBUG' }
|
||||
- { key: cppflags, name: BUGNUM_DEBUG, value: '-DBUGNUM_DEBUG' }
|
||||
- { key: cppflags, name: BIGNUM_DEBUG, value: '-DBIGNUM_DEBUG' }
|
||||
- { key: cppflags, name: CCAN_LIST_DEBUG, value: '-DCCAN_LIST_DEBUG' }
|
||||
- { key: cppflags, name: CPDEBUG=-1, value: '-DCPDEBUG=-1' }
|
||||
- { key: cppflags, name: ENC_DEBUG, value: '-DENC_DEBUG' }
|
||||
|
|
5
bignum.c
5
bignum.c
|
@ -2906,7 +2906,10 @@ bary_divmod(BDIGIT *qds, size_t qn, BDIGIT *rds, size_t rn, const BDIGIT *xds, s
|
|||
}
|
||||
|
||||
|
||||
#define BIGNUM_DEBUG 0
|
||||
#ifndef BIGNUM_DEBUG
|
||||
# define BIGNUM_DEBUG (0+RUBY_DEBUG)
|
||||
#endif
|
||||
|
||||
#if BIGNUM_DEBUG
|
||||
#define ON_DEBUG(x) do { x; } while (0)
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue