Sylvain Munaut | 26bc465 | 2020-09-14 10:19:49 +0200 | [diff] [blame] | 1 | /* |
2 | * utils.h | ||||
3 | * | ||||
4 | * Copyright (C) 2019-2020 Sylvain Munaut <tnt@246tNt.com> | ||||
5 | * SPDX-License-Identifier: LGPL-3.0-or-later | ||||
6 | */ | ||||
7 | |||||
8 | #pragma once | ||||
9 | |||||
10 | #include <stdbool.h> | ||||
11 | |||||
12 | char *hexstr(void *d, int n, bool space); | ||||
Sylvain Munaut | 7cfe017 | 2022-01-09 16:52:46 +0100 | [diff] [blame] | 13 | |
14 | void _panic(const char *file, int lineno, const char *fmt, ...); | ||||
15 | #define panic(fmt, ...) _panic(__FILE__, __LINE__, fmt, ##__VA_ARGS__) |