Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
macro.hpp
Go to the documentation of this file.
1#pragma once
2
3#define HELIOS_BIT(x) (1 << (x))
4
5// Stringify macros
6#define HELIOS_STRINGIFY_IMPL(x) #x
7#define HELIOS_STRINGIFY(x) HELIOS_STRINGIFY_IMPL(x)
8
9// Concatenation macros
10#define HELIOS_CONCAT_IMPL(a, b) a##b
11#define HELIOS_CONCAT(a, b) HELIOS_CONCAT_IMPL(a, b)
12
13// Anonymous variable generation
14#define HELIOS_ANONYMOUS_VAR(prefix) HELIOS_CONCAT(prefix, __LINE__)