blob: 079e189ad09c31af2c123c4d42f39447609c0e14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (c) 2023, Marvin Borner <dev@marvinborner.de>
// SPDX-License-Identifier: MIT
#ifndef CALM_LOG_H
#define CALM_LOG_H
#define HASH_MASK 0xffff
void _debug(const char *format, ...);
void debug_enable(int enable);
void fatal(const char *format, ...) __attribute__((noreturn));
/* #define debug(...) \ */
/* do { \ */
/* _debug("%s:%d: %s:\n", __FILE__, __LINE__, __func__); \ */
/* _debug(__VA_ARGS__); \ */
/* } while (0) */
#define debug(...) _debug(__VA_ARGS__)
#endif
|