- 优化 Conn 实体的 SendPack 方法,提高代码复用性 - 添加 goja 模块到 go.work 文件 - 重构地图进入逻辑,增加玩家广播和刷怪功能 - 调整 OutInfo 结构中的 Vip 和 Viped 字段类型 - 简化 MonsterRefresh 结构体定义
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)
|
|
}
|
|
}
|