From a7ad0667986a9a5a38a69d833a493f9258a456c8 Mon Sep 17 00:00:00 2001 From: OEOTYAN Date: Fri, 10 Jan 2025 15:42:51 +0800 Subject: [PATCH] chore: add some global prefix to macros --- src/ll/api/memory/Hook.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ll/api/memory/Hook.h b/src/ll/api/memory/Hook.h index 0530f1aac2..251d454d5c 100644 --- a/src/ll/api/memory/Hook.h +++ b/src/ll/api/memory/Hook.h @@ -128,7 +128,7 @@ struct LL_EBO Hook {}; #define LL_HOOK_IMPL(REGISTER, FUNC_PTR, STATIC, CALL, DEF_TYPE, TYPE, PRIORITY, IDENTIFIER, RET_TYPE, ...) \ struct DEF_TYPE : public TYPE { \ - inline static std::atomic_uint _AutoHookCount{}; \ + inline static ::std::atomic_uint _AutoHookCount{}; \ \ private: \ using _FuncPtr = ::ll::memory::FuncPtr; \ @@ -154,7 +154,7 @@ struct LL_EBO Hook {}; \ static constexpr bool _IsConstMemberFunction = decltype(_ConstDetector{IDENTIFIER})::value; \ \ - using _OriginFuncType = std::conditional_t<_IsConstMemberFunction, _RawConstFuncType, _RawFuncType>; \ + using _OriginFuncType = ::std::conditional_t<_IsConstMemberFunction, _RawConstFuncType, _RawFuncType>; \ \ inline static _FuncPtr _HookTarget{}; \ inline static _OriginFuncType _OriginalFunc{}; \ @@ -179,7 +179,7 @@ struct LL_EBO Hook {}; } \ template \ STATIC RET_TYPE origin(Args&&... params) { \ - return CALL(std::forward(params)...); \ + return CALL(::std::forward(params)...); \ } \ \ STATIC RET_TYPE detour(__VA_ARGS__); \