mal-packet-weaver
C++20 packet serialization/deserialization library.
Loading...
Searching...
No Matches
debug.hpp
Go to the documentation of this file.
1#pragma once
2#include "include/spdlog.hpp"
3#include "library-pch.hpp"
4
10#ifndef MAL_TOOLKIT_ASSERT_LOGS
11
18#define MAL_TOOLKIT_ASSERT_LOGS 1
19#endif
20
30#if !defined(MAL_TOOLKIT_ASSERT_ABORTS)
31#if defined(_DEBUG)
32#define MAL_TOOLKIT_ASSERT_ABORTS 1
33#define MAL_TOOLKIT_ASSERT_THROWS 0
34#else
35#define MAL_TOOLKIT_ASSERT_ABORTS 0
36#endif
37#endif
38
48#ifndef MAL_TOOLKIT_ASSERT_THROWS
49#define MAL_TOOLKIT_ASSERT_THROWS 1
50#endif
51
52#ifdef _DEBUG
53#ifndef MAL_TOOLKIT_ASSERT_ENABLED
61#define MAL_TOOLKIT_ASSERT_ENABLED 1
62#endif
63#ifndef MAL_TOOLKIT_ALWAYS_ASSERT_ENABLED
71#define MAL_TOOLKIT_ALWAYS_ASSERT_ENABLED 1
72#endif
73#else
74#ifndef MAL_TOOLKIT_ASSERT_ENABLED
75#define MAL_TOOLKIT_ASSERT_ENABLED 0
76#endif
77#ifndef MAL_TOOLKIT_ALWAYS_ASSERT_ENABLED
78#define MAL_TOOLKIT_ALWAYS_ASSERT_ENABLED 1
79#endif
80#endif
81
82#ifndef MAL_TOOLKIT_FORCE_ASSERT
83#ifdef _DEBUG
91#define MAL_TOOLKIT_FORCE_ASSERT 1
92#else
93#define MAL_TOOLKIT_FORCE_ASSERT 0
94#endif
95#endif
96
97#if MAL_TOOLKIT_ASSERT_THROWS
98#define MAL_TOOLKIT_ASSERT_NOEXCEPT
99#else
100#define MAL_TOOLKIT_ASSERT_NOEXCEPT noexcept
101#endif
102
103#ifdef MAL_TOOLKIT_NO_SOURCE_LOCATION
105#else
107#endif
This file provides utility functions for debugging and assertion handling.
Provides utility functions for debugging and assertion handling without source location information.
Precompiled header (PCH) file for common headers used across the library.
Provides integration with the SPDLOG library for efficient logging and debugging.