wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
SentryHelpers.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
10#include <QString>
11
12#ifdef HAVE_SENTRY
13#include "thirdparty/sentry/include/sentry.h"
14#endif
15
19inline void sentryBreadcrumb(const char *category, const QString &message)
20{
21#ifdef HAVE_SENTRY
22 sentry_value_t crumb = sentry_value_new_breadcrumb("default", message.toStdString().c_str());
23 sentry_value_set_by_key(crumb, "category", sentry_value_new_string(category));
24 sentry_add_breadcrumb(crumb);
25#else
26 Q_UNUSED(category)
27 Q_UNUSED(message)
28#endif
29}
void sentryBreadcrumb(const char *category, const QString &message)