mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-10-05 22:07:07 +00:00
It's a familiar pattern: some code uses ARRAY_SIZE, then refactoring changes the argument from an array to a pointer to a dynamically allocated buffer. Code keeps compiling but any ARRAY_SIZE calls now return the size of the pointer divided by element size. Let's add build time checks to ARRAY_SIZE before we allow more of these in the code-base. Backports commit ed63ec0d22ccdce3b2222d9a514423b7fbba3a0d from qemu |
||
---|---|---|
.. | ||
atomic.h | ||
bitmap.h | ||
bitops.h | ||
bswap.h | ||
compiler.h | ||
crc32c.h | ||
cutils.h | ||
fprintf-fn.h | ||
host-utils.h | ||
int128.h | ||
log.h | ||
mmap-alloc.h | ||
module.h | ||
osdep.h | ||
queue.h | ||
range.h | ||
thread-posix.h | ||
thread-win32.h | ||
thread.h | ||
timer.h | ||
typedefs.h |