mirror of
https://github.com/rehlds/metamod-r.git
synced 2024-12-28 15:45:37 +03:00
Move fprintf_ptr under JIT_DEBUG_FILE define
This commit is contained in:
parent
7e46cf73f6
commit
84743bd65c
@ -320,12 +320,12 @@ void CForwardCallbackJIT::jit_debug(const char* format, ...)
|
|||||||
|
|
||||||
char* memory_leak = Q_strdup(string); // yes, I'm lazy
|
char* memory_leak = Q_strdup(string); // yes, I'm lazy
|
||||||
static size_t print_ptr = size_t(&printf);
|
static size_t print_ptr = size_t(&printf);
|
||||||
static size_t fprint_ptr = size_t(&mdebug_to_file);
|
|
||||||
|
|
||||||
pushad();
|
pushad();
|
||||||
push(size_t(memory_leak));
|
push(size_t(memory_leak));
|
||||||
call(dword_ptr[size_t(&print_ptr)]);
|
call(dword_ptr[size_t(&print_ptr)]);
|
||||||
#ifdef JIT_DEBUG_FILE
|
#ifdef JIT_DEBUG_FILE
|
||||||
|
static size_t fprint_ptr = size_t(&mdebug_to_file);
|
||||||
call(dword_ptr[size_t(&fprint_ptr)]);
|
call(dword_ptr[size_t(&fprint_ptr)]);
|
||||||
#endif
|
#endif
|
||||||
add(esp, 4);
|
add(esp, 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user