MCPcopy
hub / github.com/wa-lang/wa / assert

Function assert

internal/native/wat2la/utils.go:18–26  ·  view source on GitHub ↗
(condition bool, args ...interface{})

Source from the content-addressed store, hash-verified

16)
17
18func assert(condition bool, args ...interface{}) {
19 if !condition {
20 if msg := fmt.Sprint(args...); msg != "" {
21 panic(fmt.Sprintf("assert failed, %s", msg))
22 } else {
23 panic("assert failed")
24 }
25 }
26}
27
28func unreachable() {
29 panic("unreachable")

Callers 15

buildFunc_bodyMethod · 0.70
buildFunc_insMethod · 0.70
st_wMethod · 0.70
st_dMethod · 0.70
fst_sMethod · 0.70
fst_dMethod · 0.70
ld_bMethod · 0.70
ld_buMethod · 0.70
ld_hMethod · 0.70
ld_huMethod · 0.70
ld_wMethod · 0.70
ld_wuMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected