aboutsummaryrefslogtreecommitdiffstats
path: root/trace.h
blob: 3b3cfa1561fea549623b8cf2e293f8db2a3a1a82 (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