diff -r 79be0cd8f6c9 -r 828fa4d35bdf sourcehook/sourcehook_impl.h --- a/sourcehook/sourcehook_impl.h Thu Jul 07 20:58:05 2005 +0000 +++ b/sourcehook/sourcehook_impl.h Thu Jul 07 21:07:43 2005 +0000 @@ -82,22 +82,6 @@ void RemoveCallClassPatch(CallClassInfo &cc, int vtbl_offs, int vtbl_idx); void RemoveCallClassPatches(void *ifaceptr, int vtbl_offs, int vtbl_idx); -#ifdef __linux__ - /** - * @brief Checks to see if a memory value can be read from a given pointer. - * - * @return True if the value can be read and false if it cannot. - * - * @param ptr The pointer to the memory value. - * @param len The length of the memory value to be read from the pointer. - */ - static bool IsBadReadPtr(const void *ptr, size_t len); - static void BadReadHandler(int sig); - - bool m_BadReadCalled; - jmp_buf m_BadReadJmpBuf; -#endif - META_RES m_Status, m_PrevRes, m_CurRes; const void *m_OrigRet; const void *m_OverrideRet; @@ -215,6 +199,22 @@ virtual void SetOrigRet(const void *ptr); //!< Sets the original return pointer virtual void SetOverrideRet(const void *ptr); //!< Sets the override result pointer }; + +#ifdef __linux__ + /** + * @brief Checks to see if a memory value can be read from a given pointer. + * + * @return True if the value can be read and false if it cannot. + * + * @param ptr The pointer to the memory value. + * @param len The length of the memory value to be read from the pointer. + */ + bool IsBadReadPtr(const void *ptr, size_t len); + void BadReadHandler(int sig); + + bool g_BadReadCalled; + jmp_buf g_BadReadJmpBuf; +#endif } #endif