diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-08 13:12:38 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-08 13:12:38 +0100 |
| commit | ca33cb990b5a05829067e18ea24bcb36a75aba67 (patch) | |
| tree | c3fa66a18cee6f44ea409e62e3878295f881c49a /core/math/big/helpers.odin | |
| parent | d4f5ef046da7d1d3402f671e84fa483c71a3b26f (diff) | |
Strip semicolons in core which were missing
Diffstat (limited to 'core/math/big/helpers.odin')
| -rw-r--r-- | core/math/big/helpers.odin | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/core/math/big/helpers.odin b/core/math/big/helpers.odin index 10c9f9e13..ae94946e1 100644 --- a/core/math/big/helpers.odin +++ b/core/math/big/helpers.odin @@ -788,10 +788,16 @@ destroy_constants :: proc() { } -assert_if_nil :: #force_inline proc(integers: ..^Int, loc := #caller_location) { - integers := integers +assert_if_nil :: proc{assert_if_nil_int, assert_if_nil_rat} - for i in &integers { +assert_if_nil_int :: #force_inline proc(integers: ..^Int, loc := #caller_location) { + for i in integers { assert(i != nil, "(nil)", loc) } } + +assert_if_nil_rat :: #force_inline proc(rationals: ..^Rat, loc := #caller_location) { + for r in rationals { + assert(r != nil, "(nil)", loc) + } +} |