safetyhook

C++23 procedure hooking library.

Latest version: 0.7.0

Add to xmake.lua

add_requires("safetyhook 0.7.0")

Learn how to add and link packages with Xmake →

Information

License
BSL-1.0
Recipe updated
2026-08-02T05:18:58.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • msys: i386, x86_64
  • mingw: i386, x86_64, arm, arm64
  • windows: x86, x64, arm, arm64, arm64ec

Options

No configurable options.

Versions

  • v0.6.4
  • v0.6.5
  • v0.6.6
  • v0.6.7
  • v0.6.9
  • v0.6.10
  • v0.7.0

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "safetyhook 0.7.0"

show info

xrepo info "safetyhook"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("safetyhook 0.7.0")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("safetyhook")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "safetyhook 0.7.0" shell