

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Garbage Collector
incomplete
2: Refcounting
incomplete
3: Increment
incomplete
4: Decrement and free
incomplete
5: Vectors
incomplete
6: Arrays
incomplete
7: Refcounting Review
incomplete
This lesson's interactive features are locked, please to keep using them
We need to be able to increment the reference count of a SnekObject any time a new reference to it is created.
Complete the refcount_inc function. It should increment the refcount of a SnekObject. If the object is NULL, it should do nothing (but safely).