summaryrefslogtreecommitdiff
path: root/src/hooks.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-03-05 13:00:01 -0300
committerGabriel Schneider <[email protected]>2026-06-08 23:04:50 -0300
commit80ba1db819a80e784a488d6d660a890e14b19282 (patch)
treeda005b5161094f24349c56acd149e4e89876410d /src/hooks.zig
parent70388a8fc6770c797c6f298886e90c982b2c721f (diff)
downloadcodenomicon-80ba1db819a80e784a488d6d660a890e14b19282.tar.gz
codenomicon-80ba1db819a80e784a488d6d660a890e14b19282.zip
simple shock
Diffstat (limited to 'src/hooks.zig')
-rw-r--r--src/hooks.zig32
1 files changed, 1 insertions, 31 deletions
diff --git a/src/hooks.zig b/src/hooks.zig
index 549d871..2fda734 100644
--- a/src/hooks.zig
+++ b/src/hooks.zig
@@ -7,35 +7,6 @@ pub const Kind = enum {
const Self = @This();
pub const Hook = @This();
-// pub fn init(comptime kind: Kind, comptime alloc: std.mem.Allocator) type {
-// return struct {
-// alloc: std.mem.Allocator = alloc,
-
-// pub fn malloc(size: usize) callconv(.c) ?*anyopaque {
-// if (kind == .breakpoint) @breakpoint();
-// return std.c.malloc(size);
-// }
-
-// pub fn calloc(n: usize, size: usize) callconv(.c) ?*anyopaque {
-// if (kind == .breakpoint) @breakpoint();
-// return std.c.calloc(n, size);
-// }
-// pub fn realloc(ptr: ?*anyopaque, size: usize) callconv(.c) ?*anyopaque {
-// if (kind == .breakpoint) @breakpoint();
-// return std.c.realloc(ptr, size);
-// }
-// pub fn free(ptr: ?*anyopaque) callconv(.c) void {
-// if (kind == .breakpoint) @breakpoint();
-// return std.c.free(ptr);
-// }
-// pub fn vsnprintf(_: [*c]u8, _: usize, _: [*c]const u8, _: [*c]u8) callconv(.c) ?*anyopaque {
-// if (kind == .breakpoint) @breakpoint();
-// return null;
-// }
-// };
-// }
-//
-
pub fn init(comptime kind: Kind, comptime alloc: std.mem.Allocator, comptime uselibc: bool) type {
return struct {
alloc: std.mem.Allocator = alloc,
@@ -108,8 +79,7 @@ pub fn init(comptime kind: Kind, comptime alloc: std.mem.Allocator, comptime use
}
pub fn vsnprintf(_: [*c]u8, _: usize, _: [*c]const u8, _: [*c]u8) callconv(.c) ?*anyopaque {
- if (kind == .breakpoint) @breakpoint();
- return null;
+ @compileError("Unimplemented!");
}
};
}