counter_set!() { /* proc-macro */ }
Expand description

Change value of counter.

Counter takes an i32 integer, it can be negative.

counter_set!(count, -4);
assert_eq!(counter_incr!(count), -4);