19 lines
334 B
Go
19 lines
334 B
Go
/*
|
|
Package fast contains code ported from V8 (https://github.com/v8/v8/blob/master/src/numbers/fast-dtoa.cc)
|
|
|
|
See LICENSE_V8 for the original copyright message and disclaimer.
|
|
*/
|
|
package fast
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
dcheckFailure = errors.New("DCHECK assertion failed")
|
|
)
|
|
|
|
func _DCHECK(f bool) {
|
|
if !f {
|
|
panic(dcheckFailure)
|
|
}
|
|
}
|