cusel/compiler/error_internal.h
Juhani Krekelä eb0e732831 Adopt clang-format
This seems to be as close as I can get it to my style. I'd've wanted to
also set Cpp11BracedListStyle[1] to Block, but that ended up
misformatting some compound literals that included expressions with
binary operators.

I'm also unsure what is going on with the formatting of _Generic().

[1] https://clang.llvm.org/docs/ClangFormatStyleOptions.html#cpp11bracedliststyle
2026-11-26 15:17:13 +02:00

18 lines
418 B
C

// This file includes the error-handling related definitions that are
// needed by other headers.
#ifndef CUSEL_ERROR_INTERNAL_H
#define CUSEL_ERROR_INTERNAL_H
struct panic_location {
char const *function;
char const *file;
int line;
};
#define PANIC_LOCATION ((struct panic_location) {__func__, __FILE__, __LINE__})
[[noreturn]] void
panic_at(struct panic_location loc, char const fmt[static 1], ...);
#endif