Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
10
void
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
}
panic
void panic(const char *fmt,...)
Definition
panic.cpp:10
qtbase
src
tools
tracegen
panic.cpp
Generated on
for Qt by
1.14.0