zig-objc/src/main.zig
Rylee Lyman 83156e7e6d
feat: implement Objective-C calling Zig
feat: add `msgSendSuper`
feat: add protocols,
feat: add `allocateClasspair` and `replaceMethod`
feat: add ivars,
feat: add `addMethod`
feat: add blocks
2023-10-20 15:37:37 -07:00

20 lines
605 B
Zig

const std = @import("std");
pub const c = @import("c.zig");
pub usingnamespace @import("autorelease.zig");
pub usingnamespace @import("class.zig");
pub usingnamespace @import("object.zig");
pub usingnamespace @import("property.zig");
pub usingnamespace @import("protocol.zig");
pub usingnamespace @import("sel.zig");
pub usingnamespace @import("block.zig");
/// This just calls the C allocator free. Some things need to be freed
/// and this is how they can be freed for objc.
pub inline fn free(ptr: anytype) void {
std.heap.c_allocator.free(ptr);
}
test {
std.testing.refAllDecls(@This());
}