#pragma once #if defined(_MSC_VER) #pragma message("warning: is deprecated; include instead") #else #warning " is deprecated; include instead" #endif #include namespace mods { template ModResult hook_install(const HookService* hooks) { return hook::install(hooks); } template ModResult hook_install() { return hook::install(); } template ModResult hook_add_pre( const HookService* hooks, HookPreFn callback, const HookOptions* options = nullptr) { return hook::add_pre(hooks, callback, options); } template ModResult hook_add_pre(HookPreFn callback, const HookOptions* options = nullptr) { return hook::add_pre(callback, options); } template ModResult hook_add_post( const HookService* hooks, HookPostFn callback, const HookOptions* options = nullptr) { return hook::add_post(hooks, callback, options); } template ModResult hook_add_post(HookPostFn callback, const HookOptions* options = nullptr) { return hook::add_post(callback, options); } template ModResult hook_replace( const HookService* hooks, HookReplaceFn callback, const HookOptions* options = nullptr) { return hook::replace(hooks, callback, options); } template ModResult hook_replace(HookReplaceFn callback, const HookOptions* options = nullptr) { return hook::replace(callback, options); } } // namespace mods