Merge branch 'master' of https://github.com/nullworks/cathook
This commit is contained in:
commit
79050d6169
@ -11,15 +11,8 @@
|
|||||||
|
|
||||||
class IClientEntity;
|
class IClientEntity;
|
||||||
|
|
||||||
// Fix clang gay
|
|
||||||
#if defined(__clang__)
|
|
||||||
#define NET_VAR(entity, offset, type) \
|
#define NET_VAR(entity, offset, type) \
|
||||||
(*(reinterpret_cast<type *>(reinterpret_cast<uint64_t>(entity) + (offset))))
|
(*(reinterpret_cast<type *>(reinterpret_cast<uint64_t>(entity) + (offset))))
|
||||||
#elif defined(__GNUC__) || defined(__GNUG__)
|
|
||||||
#define NET_VAR(entity, offset, type) \
|
|
||||||
(*(reinterpret_cast<type *>(reinterpret_cast<uintptr_t>(entity) + \
|
|
||||||
(offset))))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define NET_INT(entity, offset) NET_VAR(entity, offset, int)
|
#define NET_INT(entity, offset) NET_VAR(entity, offset, int)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user