File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ LIBS = -lgdi32 -lwinmm -lpsapi -ldbghelp -lole32
8
8
CC = i686-w64-mingw32-gcc
9
9
WINDRES ?= i686-w64-mingw32-windres
10
10
11
+ ifdef DEBUG
12
+ CFLAGS += -D _DEBUG -D _DEBUG_X
13
+ endif
14
+
11
15
.PHONY : clean all
12
16
all : $(TARGET )
13
17
Original file line number Diff line number Diff line change 5
5
set PATH = C:\w64devkit\bin
6
6
make clean
7
7
make
8
+ REM make DEBUG=1
8
9
pause
Original file line number Diff line number Diff line change @@ -646,12 +646,13 @@ void hook_exit()
646
646
647
647
hook_revert ((HOOKLIST * )& g_hook_hooklist );
648
648
649
- #if defined(_DEBUG ) && defined(_MSC_VER )
649
+ #if defined(_DEBUG )
650
+ #if defined(_MSC_VER )
650
651
DetourTransactionBegin ();
651
652
DetourUpdateThread (GetCurrentThread ());
652
653
DetourDetach ((PVOID * )& real_SetUnhandledExceptionFilter , (PVOID )fake_SetUnhandledExceptionFilter );
653
654
DetourTransactionCommit ();
654
-
655
+ #endif
655
656
real_SetUnhandledExceptionFilter (g_dbg_exception_filter );
656
657
#endif
657
658
You can’t perform that action at this time.
0 commit comments