Removing function macro SDL_TABLESIZE()

This commit is contained in:
Petar Popovic authored and Sam Lantinga committed 2024-04-29 13:52:48 -07:00
1 parent 8d0ad44edd
commit 7bfecacc02
10 files changed
+24 -14

No files matched your search

+3 -2
View File
@@ -91,10 +91,11 @@ void *alloca(size_t);
/**
* The number of elements in an array.
*
* NOTE: This macro double-evaluates the argument, so you should never have side effects in the parameter.
*
* \since This macro is available since SDL 3.0.0.
*/
#define SDL_arraysize(array) (sizeof(array)/sizeof(array[0]))
#define SDL_TABLESIZE(table) SDL_arraysize(table)
#define SDL_arraysize(array) (sizeof(array)/sizeof(array[0]))
/**
* Macro useful for building other macros with strings in them.