![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Compile-time platform and CPU bindings for Windows. More...
#include "../../../include/core/platform.hpp"Go to the source code of this file.
Macros | |
| #define | __FUNC_SIGNATURE__ __func__ |
| #define | assert(expression) |
| Debug assertion macro for runtime expression checking. | |
| #define | assert_message(expression, message) |
| Debug assertion macro with custom message for runtime expression checking. | |
Compile-time platform and CPU bindings for Windows.
Defines toy::Platform and toy::CpuArchitecture values (currentPlatform, currentCpuArchitecture) for Windows targets.
| #define __FUNC_SIGNATURE__ __func__ |
| #define assert | ( | expression | ) |
Debug assertion macro for runtime expression checking.
This macro provides runtime assertion checking in debug builds. It evaluates the given expression and triggers an assertion failure if the expression is false. In release builds, this macro expands to nothing.
| expression | Boolean expression to check. Prefer side-effect-free. |
| #define assert_message | ( | expression, | |
| message ) |
Debug assertion macro with custom message for runtime expression checking.
This macro provides runtime assertion checking in debug builds with a custom error message. It evaluates the given expression and triggers an assertion failure with the provided message if the expression is false. In release builds, this macro expands to nothing.
| expression | Boolean expression to check. Prefer side-effect-free. |
| message | A custom error message to display on assertion failure. Must be a C string literal. |