forked from cerc-io/plugeth
Debug logging functions
This commit is contained in:
parent
d4cc125456
commit
39b6eaf51c
@ -163,7 +163,7 @@ func (st *Stack) Push(d *big.Int) {
|
|||||||
st.data = append(st.data, d)
|
st.data = append(st.data, d)
|
||||||
}
|
}
|
||||||
func (st *Stack) Print() {
|
func (st *Stack) Print() {
|
||||||
fmt.Println("# val (STACK)")
|
fmt.Println("### STACK ###")
|
||||||
if len(st.data) > 0 {
|
if len(st.data) > 0 {
|
||||||
for i, val := range st.data {
|
for i, val := range st.data {
|
||||||
fmt.Printf("%-3d %v\n", i, val)
|
fmt.Printf("%-3d %v\n", i, val)
|
||||||
@ -171,4 +171,5 @@ func (st *Stack) Print() {
|
|||||||
} else {
|
} else {
|
||||||
fmt.Println("-- empty --")
|
fmt.Println("-- empty --")
|
||||||
}
|
}
|
||||||
|
fmt.Println("#############")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user