Add missing calls for Object; Add scoped_autoreleasepool

This commit is contained in:
gingerBill
2022-02-09 12:29:52 +00:00
parent ef98e92e8d
commit b6abaf739c
2 changed files with 14 additions and 0 deletions
@@ -13,3 +13,8 @@ AutoreleasePool_showPools :: proc(self: ^AutoreleasePool, obj: ^Object) {
msgSend(nil, self, "showPools")
}
@(deferred_out=AutoreleasePool_drain)
scoped_autoreleasepool :: proc() -> ^AutoreleasePool {
return init(alloc(AutoreleasePool))
}