mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-03 05:23:48 -07:00
15 lines
354 B
C++
15 lines
354 B
C++
#pragma once
|
|
|
|
#include <format>
|
|
#include <iostream>
|
|
|
|
// NOLINTNEXTLINE
|
|
namespace Debug {
|
|
template <typename... Args>
|
|
void die(std::format_string<Args...> fmt, Args&&... args) {
|
|
const std::string logMsg = std::vformat(fmt.get(), std::make_format_args(args...));
|
|
|
|
std::cout << "\n[ERR] " << logMsg << "\n";
|
|
exit(1);
|
|
}
|
|
}; |