Skip to content

Commit 5aed8ce

Browse files
committed
Utils: Конструкция "sizeof...(Args)" по неизвестной причине вызывает ошибку "Error C3861 'DbgLogInfo': identifier not found". Поэтому переносим функцию 'DbgLogInfo' в блок _DEBUG.
1 parent 4cb7a6e commit 5aed8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Utils/Util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#pragma once
88

9+
910
template <typename... Args>
1011
inline void DebugLogFmt(std::wstring_view format, Args&& ...args)
1112
{
@@ -25,7 +26,6 @@ inline void DebugLogFmt(std::string_view format, Args&& ...args)
2526
DbgLogInfo(LOG_TRACE, 3, format.data());
2627
}
2728
}
28-
2929
#ifdef _DEBUG
3030
#define DLog(...) DebugLogFmt(__VA_ARGS__)
3131
#define DLogIf(f,...) {if (f) DebugLogFmt(__VA_ARGS__);}

0 commit comments

Comments
 (0)