mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-19 08:52:34 +01:00
Moved g_BadReadCalled and g_BadReadJmpBuf to sourcehook.cpp to prevent linking errors when including sourcehook_impl.h
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4094
This commit is contained in:
parent
81ae7cabf5
commit
151efb135a
@ -589,6 +589,9 @@ namespace SourceHook
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
bool g_BadReadCalled;
|
||||
jmp_buf g_BadReadJmpBuf;
|
||||
|
||||
// Windows has an implementation for this already, but Linux does not :(
|
||||
bool IsBadReadPtr(const void *ptr, size_t len)
|
||||
{
|
||||
|
@ -211,9 +211,6 @@ namespace SourceHook
|
||||
*/
|
||||
bool IsBadReadPtr(const void *ptr, size_t len);
|
||||
void BadReadHandler(int sig);
|
||||
|
||||
bool g_BadReadCalled;
|
||||
jmp_buf g_BadReadJmpBuf;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user