Skip to content

Commit

Permalink
chore: add some global prefix to macros
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Jan 10, 2025
1 parent 5e691a2 commit a7ad066
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ll/api/memory/Hook.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand All @@ -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{}; \
Expand All @@ -179,7 +179,7 @@ struct LL_EBO Hook {};
} \
template <class... Args> \
STATIC RET_TYPE origin(Args&&... params) { \
return CALL(std::forward<Args>(params)...); \
return CALL(::std::forward<Args>(params)...); \
} \
\
STATIC RET_TYPE detour(__VA_ARGS__); \
Expand Down

0 comments on commit a7ad066

Please sign in to comment.