mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-09 04:58:07 +02:00
internal: clang-tidy & ifdef changes
This commit is contained in:
parent
cadf922417
commit
55c2abd2c9
2 changed files with 1 additions and 7 deletions
|
|
@ -1,11 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
// because C/C++ VS Code intellisense is stupid with includes, we will suppress them here.
|
||||
// This suppresses all "include file not found" errors.
|
||||
#ifdef __INTELLISENSE__
|
||||
#pragma diag_suppress 1696
|
||||
#endif
|
||||
|
||||
#include <getopt.h>
|
||||
#include <libinput.h>
|
||||
#include <linux/input-event-codes.h>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
} else if (level == LOG || level == INFO || level == TRACE) { \
|
||||
oss << "[" << EXTRACT_CLASS_NAME() << "] "; \
|
||||
} \
|
||||
if constexpr (std::tuple_size<decltype(std::make_tuple(__VA_ARGS__))>::value == 1 && std::is_same_v<decltype(__VA_ARGS__), std::string>) { \
|
||||
if constexpr (std::tuple_size_v<decltype(std::make_tuple(__VA_ARGS__))> == 1 && std::is_same_v<decltype(__VA_ARGS__), std::string>) { \
|
||||
oss << __VA_ARGS__; \
|
||||
Debug::log(level, oss.str()); \
|
||||
} else { \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue