mirror of
https://github.com/voided/CollisionHook.git
synced 2025-12-06 18:28:22 +00:00
This PR introduces a new macro, DETOUR_CUSTOM_STATIC2, to unify detour declarations across different platforms and Source Engine versions, improving code readability. - Linux i386 (TF2) → uses __attribute__((regparm(2))) - Windows (CSGO) → uses __fastcall - All other platforms → falls back to standard DETOUR_DECL_STATIC2 By consolidating detour declarations into a single macro, code is easier to read, maintain, and less error-prone across different platforms and ABIs. |
||
|---|---|---|
| .github/workflows | ||
| buildbot | ||
| sourcemod | ||
| src | ||
| .gitignore | ||
| AMBuildScript | ||
| configure.py | ||
| product.version | ||
| README.md | ||
| renovate.json | ||
SourceMod CollisionHook Extension
See also: https://forums.alliedmods.net/showthread.php?t=197815