aboutsummaryrefslogtreecommitdiffstats
path: root/trace.h
blob: 57393d921ae976472710d2a04af7a157ad431738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright (C) 2020-2021  Tomasz Kramkowski <tk@the-tk.com>
 * SPDX-License-Identifier: MIT
 */
#ifndef PACK_TRACE_H
#define PACK_TRACE_H

#define ATTRIBUTE_FORMAT(type, fmt, args) __attribute__((format(type, fmt, args)))

ATTRIBUTE_FORMAT(printf, 1, 2)
void tr_call(const char *fmt, ...);
ATTRIBUTE_FORMAT(printf, 1, 2)
void tr_debug(const char *fmt, ...);

#endif // !PACK_TRACE_H