mirror of https://github.com/trapexit/mergerfs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
587 B
13 lines
587 B
#pragma once
|
|
|
|
#include "fmt/core.h"
|
|
#include <cstdlib>
|
|
|
|
#define DIE(...) \
|
|
do { \
|
|
fmt::print(stderr, fmt::emphasis::bold | fg(fmt::color::red), \
|
|
"{}:{} in {}: ", __FILE__, __LINE__, __func__); \
|
|
fmt::print(stderr, __VA_ARGS__); \
|
|
fmt::print(stderr, "\n"); \
|
|
std::abort(); \
|
|
} while(0)
|