blob: 864aaad862f4606b727c2f521e7c495a1e9e844a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require 'mkmf'
base_fig = 0
src = ("(BASE > 0) && "
"(BASE * (BASE+1)) > BASE && "
"(BASE * (BASE+1)) / BASE == (BASE+1)")
while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL")
base_fig += 1
end
$defs << "-DBASE=1#{'0'*base_fig}UL" << "-DBASE_FIG=#{base_fig}"
create_makefile('bigdecimal')
|