7 const wchar_t *debug_file_name
= L
"C:\\gdipp_debug.log";
9 void debug_buffer(const void *ptr
, unsigned int size
)
12 _wfopen_s(&f
, debug_file_name
, L
"a+");
16 fwrite(ptr
, 1, size
, f
);
21 void debug_decimal(double num
, bool new_line
)
24 _wfopen_s(&f
, debug_file_name
, L
"a+");
29 fwprintf(f
, L
"%f\n", num
);
31 fwprintf(f
, L
"%f, ", num
);
36 void debug_integer(size_t num
, bool new_line
)
39 _wfopen_s(&f
, debug_file_name
, L
"a+");
44 fwprintf(f
, L
"%u\n", num
);
46 fwprintf(f
, L
"%u, ", num
);
51 void debug_string(const wchar_t *str
, bool new_line
)
54 _wfopen_s(&f
, debug_file_name
, L
"a+");
59 fwprintf(f
, L
"%s\n", str
);
61 fwprintf(f
, L
"%s", str
);