strconv: use `[if debug_strconv?]` for `fn assert1`

pull/10471/head
Delyan Angelov 2021-06-22 10:33:48 +03:00
parent 79df7f51c3
commit a3f876d683
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,8 @@
module strconv
import math.bits
// import math
/*
f32/f64 to string utilities
@ -17,13 +20,9 @@ Pages 270282 https://doi.org/10.1145/3192366.3192369
inspired by the Go version here:
https://github.com/cespare/ryu/tree/ba56a33f39e3bbbfa409095d0f9ae168a595feea
*/
import math.bits
// import math
/*
General Utilities
*/
// General Utilities
[if debug_strconv ?]
fn assert1(t bool, msg string) {
if !t {
panic(msg)