Add missing calls for Object; Add scoped_autoreleasepool
This commit is contained in:
1 parent
ef98e92e8d
commit
b6abaf739c
2 files changed
+14
No files matched your search
@@ -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))
|
||||
}
|
||||
Reference in new issue
Block a user