mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 11:35:46 +01:00
11 lines
594 B
C
11 lines
594 B
C
/* Copyright (c) 2025 Quinn.
|
|
* This is a file from the project MCA-Selector-Lite and is
|
|
* licensed under the MIT Licence. See the project's LICENSE file for details. */
|
|
#pragma once
|
|
|
|
#define WIDTHOF(t) (sizeof(t) * 8) // gets the bit width of a type
|
|
#define MACRO_CAT(x, y) x##y // concatenate two macro variables together
|
|
#define MACRO_CAT2(x, y) MACRO_CAT(x, y) // concatenate two macro variables together
|
|
#define MACRO_STR(v) #v // for converting macro variable into a string
|
|
#define MACRO_STR2(v) MACRO_STR(v) // for a recursive string generation
|