From a3f876d683e97ad8e13c06b1b74af3875fdc78fa Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 22 Jun 2021 10:33:48 +0300 Subject: [PATCH] strconv: use `[if debug_strconv?]` for `fn assert1` --- vlib/strconv/utilities.v | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/vlib/strconv/utilities.v b/vlib/strconv/utilities.v index dc1c1a621f..3cb234d76c 100644 --- a/vlib/strconv/utilities.v +++ b/vlib/strconv/utilities.v @@ -1,5 +1,8 @@ module strconv +import math.bits +// import math + /* f32/f64 to string utilities @@ -17,13 +20,9 @@ Pages 270–282 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)