neoneo-go/pkg/vm/stackitem/reference.go

16 lines
163 B
Go
Raw Normal View History

package stackitem
type rc struct {
count int
}
func (r *rc) IncRC() int {
r.count++
return r.count
}
func (r *rc) DecRC() int {
r.count--
return r.count
}