mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 19:33:34 +00:00
Codechange: remove now unused endof macro
This commit is contained in:
parent
8fe5fdf122
commit
434c49a1f8
@ -285,14 +285,6 @@ char (&ArraySizeHelper(T (&array)[N]))[N];
|
|||||||
*/
|
*/
|
||||||
#define lengthof(array) (sizeof(ArraySizeHelper(array)))
|
#define lengthof(array) (sizeof(ArraySizeHelper(array)))
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the end element of an fixed size array.
|
|
||||||
*
|
|
||||||
* @param x The pointer to the first element of the array
|
|
||||||
* @return The pointer past to the last element of the array
|
|
||||||
*/
|
|
||||||
#define endof(x) (&x[lengthof(x)])
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the last element of an fixed size array.
|
* Get the last element of an fixed size array.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user