Skip to content

Instantly share code, notes, and snippets.

View Numeez's full-sized avatar

Mahammed Numeez Baloch Numeez

View GitHub Profile
fn decCountInc(self: ?*SnekObject, allocator: std.mem.Allocator) void {
if (self == null) {
return;
}
self.?.referenceCount -= 1;
if (self.?.referenceCount == 0) {
SnekObject.refCountFree(self.?, allocator);
}
}