Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qassert.cpp File Reference
#include "qassert.h"
#include <QtCore/qlogging.h>
#include <cstdio>
#include <exception>
#include <new>
+ Include dependency graph for qassert.cpp:

Go to the source code of this file.

Functions

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

◆ qBadAlloc()

void qBadAlloc ( )

Definition at line 131 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 74 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 115 of file qassert.cpp.