mal-packet-weaver
C++20 packet serialization/deserialization library.
Loading...
Searching...
No Matches
debug.hpp File Reference

Contains debugging-related macros and utilities for assisting with debugging tasks. More...

Include dependency graph for debug.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAL_TOOLKIT_ASSERT_LOGS   1
 Indicates whether assertion logs are enabled (1) or disabled (0).
 
#define MAL_TOOLKIT_ASSERT_ABORTS   0
 Controls whether assertions should result in program abortion.
 
#define MAL_TOOLKIT_ASSERT_THROWS   1
 Controls whether assertions throw exceptions in case of failure.
 
#define MAL_TOOLKIT_ASSERT_ENABLED   0
 
#define MAL_TOOLKIT_ALWAYS_ASSERT_ENABLED   1
 
#define MAL_TOOLKIT_FORCE_ASSERT   0
 
#define MAL_TOOLKIT_ASSERT_NOEXCEPT
 

Detailed Description

Contains debugging-related macros and utilities for assisting with debugging tasks.

Definition in file debug.hpp.

Macro Definition Documentation

◆ MAL_TOOLKIT_ALWAYS_ASSERT_ENABLED

#define MAL_TOOLKIT_ALWAYS_ASSERT_ENABLED   1

Definition at line 78 of file debug.hpp.

◆ MAL_TOOLKIT_ASSERT_ABORTS

#define MAL_TOOLKIT_ASSERT_ABORTS   0

Controls whether assertions should result in program abortion.

If set to 1, failed assertions will lead to program abortion. If set to 0, assertions will not abort the program, and behavior will depend on MAL_TOOLKIT_ASSERT_THROWS. This option is ignored in _DEBUG mode.

Definition at line 35 of file debug.hpp.

◆ MAL_TOOLKIT_ASSERT_ENABLED

#define MAL_TOOLKIT_ASSERT_ENABLED   0

Definition at line 75 of file debug.hpp.

◆ MAL_TOOLKIT_ASSERT_LOGS

#define MAL_TOOLKIT_ASSERT_LOGS   1

Indicates whether assertion logs are enabled (1) or disabled (0).

If enabled, assertion logs will be generated when assertions fail. Default value is 1.

Definition at line 18 of file debug.hpp.

◆ MAL_TOOLKIT_ASSERT_NOEXCEPT

#define MAL_TOOLKIT_ASSERT_NOEXCEPT

Definition at line 98 of file debug.hpp.

◆ MAL_TOOLKIT_ASSERT_THROWS

#define MAL_TOOLKIT_ASSERT_THROWS   1

Controls whether assertions throw exceptions in case of failure.

If set to 1, failed assertions will throw exceptions. If set to 0, assertions will not throw exceptions and will follow the behavior defined by MAL_TOOLKIT_ASSERT_ABORTS. This option is ignored if MAL_TOOLKIT_ASSERT_ABORTS is set to 1.

Definition at line 49 of file debug.hpp.

◆ MAL_TOOLKIT_FORCE_ASSERT

#define MAL_TOOLKIT_FORCE_ASSERT   0

Definition at line 93 of file debug.hpp.