mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
strconv: use [if debug_strconv?]
for fn assert1
This commit is contained in:
parent
79df7f51c3
commit
a3f876d683
@ -1,5 +1,8 @@
|
|||||||
module strconv
|
module strconv
|
||||||
|
|
||||||
|
import math.bits
|
||||||
|
// import math
|
||||||
|
|
||||||
/*
|
/*
|
||||||
f32/f64 to string utilities
|
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:
|
inspired by the Go version here:
|
||||||
https://github.com/cespare/ryu/tree/ba56a33f39e3bbbfa409095d0f9ae168a595feea
|
https://github.com/cespare/ryu/tree/ba56a33f39e3bbbfa409095d0f9ae168a595feea
|
||||||
*/
|
*/
|
||||||
import math.bits
|
|
||||||
|
|
||||||
// import math
|
// General Utilities
|
||||||
|
[if debug_strconv ?]
|
||||||
/*
|
|
||||||
General Utilities
|
|
||||||
*/
|
|
||||||
fn assert1(t bool, msg string) {
|
fn assert1(t bool, msg string) {
|
||||||
if !t {
|
if !t {
|
||||||
panic(msg)
|
panic(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user