Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 GPL-3.0-only WITH Qt-GPL-exception-1.0
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