Skip to content

Commit

Permalink
objc: expose autoreleasePoolPush/Pop
Browse files Browse the repository at this point in the history
  • Loading branch information
pdoane authored and slimsag committed Oct 2, 2023
1 parent 4d9abb0 commit aa5eb32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const std = @import("std");
pub const objc = @import("objc.zig");

pub const core_foundation = struct {
pub const cf = @import("core_foundation/cf.zig");
Expand Down
5 changes: 5 additions & 0 deletions src/objc.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extern fn objc_autoreleasePoolPop(pool: *anyopaque) void;
extern fn objc_autoreleasePoolPush() *anyopaque;

pub const autoreleasePoolPop = objc_autoreleasePoolPop;
pub const autoreleasePoolPush = objc_autoreleasePoolPush;

0 comments on commit aa5eb32

Please sign in to comment.