Plasma Engine  2.0
Loading...
Searching...
No Matches
PreprocessorUtils.h
1
2#pragma once
3
5
8#define PL_PP_IDENTITY(x) x
9
11#define PL_PP_CONCAT(x, y) PL_PP_CONCAT_HELPER(x, y)
12#define PL_PP_CONCAT_HELPER(x, y) PL_PP_CONCAT_HELPER2(x, y)
13#define PL_PP_CONCAT_HELPER2(x, y) x##y
14
16#define PL_PP_CONCAT(x, y) PL_PP_CONCAT_HELPER(x, y)
17
19#define PL_PP_STRINGIFY(str) PL_PP_STRINGIFY_HELPER(str)
20#define PL_PP_STRINGIFY_HELPER(x) #x
21
23#define PL_COMPILE_TIME_MAX(a, b) ((a) > (b) ? (a) : (b))
24
26#define PL_COMPILE_TIME_MIN(a, b) ((a) < (b) ? (a) : (b))
27
28
30#define PL_BIT(n) (1ull << (n))