From 90d1545bb2607366be62bd3333954d592b4d08ab Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Wed, 19 Jul 2023 11:45:55 +0300 Subject: [PATCH] Uninline debug_register_func --- src/debug.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/debug.cc b/src/debug.cc index 29df660..e793758 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -104,14 +104,8 @@ void _debug_register_env() // NOTE: Uninline. _debug_register_screen(); } else if (strcmp(copy, "gnw") == 0) { - if (gDebugPrintProc != _win_debug) { - if (_fd != NULL) { - fclose(_fd); - _fd = NULL; - } - - gDebugPrintProc = _win_debug; - } + // NOTE: Uninline. + _debug_register_func(_win_debug); } internal_free(copy);