// SPDX-License-Identifier: LGPL-3.0-or-later #include "impl.h" #include #include #include #undef hkvs_die void hkvs_die(const char *msg) { hkvs_die_ext(NULL, NULL, 0, msg); } void hkvs_die_ext(const char *func, const char *file, int line, const char *msg) { (void)file; if(func) { fprintf(stderr, "Internal error: [%s:%d] %s\n", func, line, msg); } else { fprintf(stderr, "Internal error: %s\n", msg); } abort(); }