Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CPChain/chain
/ require
Method
require
core/vm/stack.go:77–82 ·
view source on GitHub ↗
(n int)
Source
from the content-addressed store, hash-verified
75
}
76
77
func
(st *Stack) require(n int) error {
78
if
st.len() < n {
79
return
fmt.Errorf(
"stack underflow (%d <=> %d)"
, len(st.data), n)
80
}
81
return
nil
82
}
83
84
// Print dumps the content of the stack
85
func
(st *Stack) Print() {
Callers
1
makeStackFunc
Function · 0.80
Calls
1
len
Method · 0.95
Tested by
no test coverage detected