summaryrefslogtreecommitdiff
path: root/src/user/lib/include/bits/panic.h
blob: 91aec5f3fe7896216c69409078fa0323ec901fab (plain)
1
2
3
4
5
#pragma once
#include <stdio.h>
#include <stdlib.h>

#define __libc_panic(...) do { fprintf(stderr, "__libc_panic @ %s:", __func__); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); abort(); } while (0)