ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
core.hpp File Reference

Umbrella header for the engine core module. More...

#include <algorithm>
#include <array>
#include <bit>
#include <cmath>
#include <compare>
#include <concepts>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <cuchar>
#include <initializer_list>
#include <iterator>
#include <limits>
#include <memory>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include "/home/runner/work/toygine2/toygine2/src/platforms/linux/platform_config.hpp"
#include "core/assertion.hpp"
#include "core/bitwise_enum.hpp"
#include "core/c_string_view.hpp"
#include "core/callbacks_pool.hpp"
#include "core/constexpr_utils.hpp"
#include "core/fixed_string.hpp"
#include "core/fixed_vector.hpp"
#include "core/format_pattern.hpp"
#include "core/format_string.hpp"
#include "core/hashes.hpp"
#include "core/o_string_stream.hpp"
#include "core/platform.hpp"
#include "core/string_fixed_storage.hpp"
#include "core/string_like.hpp"
#include "core/utils.hpp"
#include "core/bitwise_enum.inl"
#include "core/c_string_view.inl"
#include "core/callbacks_pool.inl"
#include "core/constexpr_utils.inl"
#include "core/fixed_string.inl"
#include "core/fixed_vector.inl"
#include "core/format_pattern.inl"
#include "core/format_string.inl"
#include "core/o_string_stream.inl"
#include "core/string_fixed_storage.inl"
#include "core/utils.inl"
Include dependency graph for core.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  toy::array< T >
 STL class. More...

Namespaces

namespace  toy
 Root namespace containing all engine modules.

Macros

#define validate(expression)
 When _DEBUG is defined: expands to assert(expression).
#define validate_message(expression, message)
 When _DEBUG is defined: expands to assert_message(expression, message).
#define TOY_CONFIG_DEBUG_MEMORY

Detailed Description

Umbrella header for the engine core module.

Defines the public core surface: platform, assertions, string utilities, output string stream, callbacks pool, fixed strings and vectors, hashing, formatting helpers, and general utilities.

Note
Include this header only; do not include internal headers directly.

Macro Definition Documentation

◆ TOY_CONFIG_DEBUG_MEMORY

#define TOY_CONFIG_DEBUG_MEMORY

◆ validate

#define validate ( expression)
Value:
assert(expression)
#define assert(expression)
Debug assertion macro for runtime expression checking.
Definition assertion_macro_gcc_clang.hpp:58

When _DEBUG is defined: expands to assert(expression).

Evaluates expression and triggers an assertion failure (via toy::assertion::assertion) if it is false. When _DEBUG is not defined, the other definition applies: expands to (expression) (evaluated, no check).

Parameters
expressionBoolean expression to check. Prefer side-effect-free.
See also
validate_message, assert

◆ validate_message

#define validate_message ( expression,
message )
Value:
assert_message(expression, message)
#define assert_message(expression, message)
Debug assertion macro with custom message for runtime expression checking.
Definition assertion_macro_gcc_clang.hpp:92

When _DEBUG is defined: expands to assert_message(expression, message).

Same as validate but passes message to the assertion handler for a clearer failure report. When _DEBUG is not defined, expands to (expression); message is unused.

Parameters
expressionBoolean expression to check. Prefer side-effect-free.
messageA custom error message to display on assertion failure. Must be a C string literal.
See also
validate, assert_message