(OLD) Process and function hooking library for Windows
Striven
2026-01-31 f93c9a86e89e658c46b25a7571d8bff69ec7450f
src/hook_singleton.zig
@@ -4,7 +4,11 @@
const memory = @import("memory.zig");
pub fn HookSingleton(comptime log_scope: @Type(.enum_literal), comptime function_ref: memory.Function, comptime detour_function: anytype) type {
pub fn HookSingleton(
    comptime log_scope: @Type(.enum_literal),
    comptime function_ref: memory.Function,
    comptime detour_function: anytype,
) type {
    return struct {
        pub const scope = log_scope;
        pub const log = std.log.scoped(log_scope);