/* * utils.h * * Copyright (C) 2019-2022 Sylvain Munaut * SPDX-License-Identifier: LGPL-3.0-or-later */ #pragma once #include char *hexstr(void *d, int n, bool space); uint8_t hexval(char c); void _panic(const char *file, int lineno, const char *fmt, ...); #define panic(fmt, ...) _panic(__FILE__, __LINE__, fmt, ##__VA_ARGS__)