Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
panic.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Rafael Roquetto <rafael.roquetto@kdab.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "panic.h"
5
6#include <cstdarg>
7#include <cstdio>
8#include <cstdlib>
9
10void panic(const char *fmt, ...)
11{
12 va_list ap;
13
14 fprintf(stderr, "tracegen: fatal: ");
15
16 va_start(ap, fmt);
17 vfprintf(stderr, fmt, ap);
18 va_end(ap);
19
20 fputc('\n', stderr);
21
22 exit(EXIT_FAILURE);
23}
void panic(const char *fmt,...)
Definition panic.cpp:10
QVideoFrameFormat::PixelFormat fmt