summaryrefslogtreecommitdiff
path: root/src/backtrace.h
blob: d6a1dab5b1561c07d0dd17fbe996d40a1f2618a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
 *
 *
 */

#include <stdint.h>

void btd_backtrace_init(void);
void btd_backtrace(uint16_t index);

void btd_assertion_message_expr(const char *file, int line,
					const char *func, const char *expr);

#define btd_assert(expr) do { \
	if (expr) ; else \
		btd_assertion_message_expr(__FILE__, __LINE__, __func__, #expr); \
	} while (0)