1
0
Fork 0
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:
Nobuyoshi Nakada 2020-05-29 02:43:30 +09:00
parent 07b2102a88
commit b8fadf3a6b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 5 additions and 2 deletions

View file

@ -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' }

View file

@ -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