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
qassert.cpp File Reference

(907e9a8b293a0a4372ea474ad76e7507e7c7ebd9)

#include "qassert.h"
#include <QtCore/qlogging.h>
#include <cstdlib>
#include <cstdio>
#include <exception>
#include <new>
+ Include dependency graph for qassert.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE void qAbort ()
 
void qt_assert_x (const char *where, const char *what, const char *file, int line) noexcept
 
void qt_check_pointer (const char *n, int l) noexcept
 
void qBadAlloc ()
 

Function Documentation

◆ qAbort()

Definition at line 24 of file qassert.cpp.

References Q_UNREACHABLE_IMPL.

Referenced by qDetectCpuFeatures(), and qt_message_fatal().

+ Here is the caller graph for this function:

◆ qBadAlloc()

void qBadAlloc ( )

Definition at line 168 of file qassert.cpp.

Referenced by QV4::SharedInternalClassData< T >::add(), and QByteDataBuffer::read().

+ Here is the caller graph for this function:

◆ qt_assert_x()

void qt_assert_x ( const char * where,
const char * what,
const char * file,
int line )
noexcept

Definition at line 111 of file qassert.cpp.

References QMessageLogger::fatal(), file, and line.

+ Here is the call graph for this function:

◆ qt_check_pointer()

void qt_check_pointer ( const char * n,
int l )
noexcept

The Q_CHECK_PTR macro calls this function if an allocation check fails.

Definition at line 152 of file qassert.cpp.