debug_log
debug_log = CreateFile(
if (debug_log == INVALID_HANDLE_VALUE) {
CloseHandle(debug_log);
debug_log = CreateFile(
if (debug_log == INVALID_HANDLE_VALUE) {
if (debug_log != INVALID_HANDLE_VALUE) {
CloseHandle(debug_log);
debug_log = INVALID_HANDLE_VALUE;
static HANDLE debug_log = INVALID_HANDLE_VALUE;
if (debug_log != INVALID_HANDLE_VALUE) {
WriteFile(debug_log, ascbuf, n, &n, NULL);
debug_log(__func__, __LINE__, fmt)
static void debug_log(const char *, size_t, const char *, ...)