mirror of https://github.com/n1nj4sec/pupy.git
Enable all messages when /DDEBUG
This commit is contained in:
parent
19093c13e9
commit
2d28bdb9ee
|
@ -21,7 +21,7 @@ endif
|
|||
|
||||
ifdef DEBUG
|
||||
DEBUG_ADD :=DEBUG
|
||||
CFLAGS := $(CFLAGS) /DDEBUG
|
||||
CFLAGS := $(CFLAGS) /DDEBUG /DVERBOSE
|
||||
LINKER_OPTS :=
|
||||
PPARCH := $(PPARCH)d
|
||||
else
|
||||
|
@ -79,7 +79,7 @@ resources_msvcr90_dll.c: resources/msvcr90.dll gen_resource_header.py $(BUILDENV
|
|||
$(PYTHON) gen_resource_header.py $<
|
||||
|
||||
$(PYOBJS): %.obj: %.c
|
||||
$(CC) /c $(CFLAGS) /I$(PYTHONPATH)/include $<
|
||||
$(CC) /c $(CFLAGS) /I$(PYTHONPATH)\\include $<
|
||||
|
||||
main_exe.obj: main_exe.c
|
||||
$(CC) /c $(CFLAGS) $<
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
# Pupy is under the BSD 3-Clause license. see the LICENSE file at the root of the project for the detailed licence terms
|
||||
*/
|
||||
|
||||
#ifndef DEBUG
|
||||
#define QUIET // uncomment to avoid debug prints
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -50,10 +53,10 @@ DWORD WINAPI mainThread(LPVOID lpArg)
|
|||
PyGILState_STATE restore_state;
|
||||
|
||||
if(!GetModuleHandle("msvcr90.dll")){
|
||||
int r = _load_msvcr90(resources_msvcr90_dll_start);
|
||||
#ifndef QUIET
|
||||
fprintf(stderr,"loading msvcr90.dll\n");
|
||||
fprintf(stderr,"loading msvcr90.dll: %d\n", r);
|
||||
#endif
|
||||
_load_msvcr90(resources_msvcr90_dll_start);
|
||||
}
|
||||
else{
|
||||
#ifndef QUIET
|
||||
|
@ -162,4 +165,3 @@ DWORD WINAPI mainThread(LPVOID lpArg)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue