2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2025-01-27 14:08:23 +03:00

Merge pull request #9 from In-line/patch-2

Move fprintf_ptr under JIT_DEBUG_FILE define
This commit is contained in:
theAsmodai 2017-06-28 20:41:12 +03:00 committed by GitHub
commit 8d6d730ed7

View File

@ -320,12 +320,12 @@ void CForwardCallbackJIT::jit_debug(const char* format, ...)
char* memory_leak = Q_strdup(string); // yes, I'm lazy
static size_t print_ptr = size_t(&printf);
static size_t fprint_ptr = size_t(&mdebug_to_file);
pushad();
push(size_t(memory_leak));
call(dword_ptr[size_t(&print_ptr)]);
#ifdef JIT_DEBUG_FILE
static size_t fprint_ptr = size_t(&mdebug_to_file);
call(dword_ptr[size_t(&fprint_ptr)]);
#endif
add(esp, 4);