mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
16 lines
163 B
Go
16 lines
163 B
Go
|
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
|
||
|
}
|