RETURN_META_MNEWPARAMS(_VALUE), SH_MCALL and SH_MANUALHOOK_RECONFIGURE can now be used if the hook is only declared using SH_DECL_MANUALEXTERN.
1 /* ======== SourceHook ========
2 * Copyright (C) 2004-2007 Metamod:Source Development Team
3 * No warranties of any kind
7 * Author(s): Pavol "PM OnoTo" Marko
8 * ============================
11 #ifndef __SOURCEHOOK_IMPL_CIFACE_H__
12 #define __SOURCEHOOK_IMPL_CIFACE_H__
25 List<CHook> m_PreHooks;
26 List<CHook> m_PostHooks;
30 typedef void* Descriptor;
33 inline CIface(void *ptr);
34 inline bool operator==(const Descriptor &other);
35 inline void *GetPtr() const;
36 inline List<CHook> &GetPreHookList();
37 inline List<CHook> &GetPostHookList();
38 inline const List<CHook> &GetPreHookList() const;
39 inline const List<CHook> &GetPostHookList() const;
42 // *** Implementation ***
43 inline CIface::CIface(void *ptr)
48 inline bool CIface::operator==(const Descriptor &other)
50 return m_Ptr == other;
53 inline void *CIface::GetPtr() const
58 inline List<CHook> &CIface::GetPreHookList()
63 inline List<CHook> &CIface::GetPostHookList()
68 inline const List<CHook> &CIface::GetPreHookList() const
73 inline const List<CHook> &CIface::GetPostHookList() const