MySQL 8.4.2
Source Code Documentation
ut0dbg.cc File Reference

Debug utilities for Innobase. More...

#include <stdlib.h>
#include "my_dbug.h"
#include "univ.i"
#include "ha_prototypes.h"
#include "sql/log.h"
#include "ut0dbg.h"

Functions

void ut_set_assert_callback (std::function< void()> &callback)
 Set a callback function to be called before exiting. More...
 
void ut_dbg_assertion_failed (const char *expr, const char *file, uint64_t line)
 Report a failed assertion. More...
 

Variables

static std::function< void()> assert_callback
 

Detailed Description

Debug utilities for Innobase.

Created 1/30/1994 Heikki Tuuri

Function Documentation

◆ ut_dbg_assertion_failed()

void ut_dbg_assertion_failed ( const char *  expr,
const char *  file,
uint64_t  line 
)

Report a failed assertion.

Parameters
[in]exprThe failed assertion
[in]fileSource file containing the assertion
[in]lineLine number of the assertion

◆ ut_set_assert_callback()

void ut_set_assert_callback ( std::function< void()> &  callback)

Set a callback function to be called before exiting.

Parameters
[in]callbackuser callback function

Variable Documentation

◆ assert_callback

std::function<void()> assert_callback
static