1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 16:39:09 +00:00

Codechange: remove now unused cpp_sizeof

This commit is contained in:
Rubidium
2025-05-11 12:43:42 +02:00
committed by rubidium42
parent 02d8ae018c
commit 03116ea878

View File

@@ -270,14 +270,6 @@ char (&ArraySizeHelper(T (&array)[N]))[N];
*/
#define lengthof(array) (sizeof(ArraySizeHelper(array)))
/**
* Gets the size of a variable within a class.
* @param base The class the variable is in.
* @param variable The variable to get the size of.
* @return the size of the variable
*/
#define cpp_sizeof(base, variable) (sizeof(std::declval<base>().variable))
/* take care of some name clashes on MacOS */
#if defined(__APPLE__)