common.go 334 B

123456789101112131415161718
  1. /*
  2. Package fast contains code ported from V8 (https://github.com/v8/v8/blob/master/src/numbers/fast-dtoa.cc)
  3. See LICENSE_V8 for the original copyright message and disclaimer.
  4. */
  5. package fast
  6. import "errors"
  7. var (
  8. dcheckFailure = errors.New("DCHECK assertion failed")
  9. )
  10. func _DCHECK(f bool) {
  11. if !f {
  12. panic(dcheckFailure)
  13. }
  14. }