Mercurial > minori
view include/core/array.h @ 20:8a4122caaf2f
*: redefine ARRAYSIZE on platforms that don't include it
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 19 Sep 2023 23:18:15 -0400 |
parents | d05b1be2f3a6 |
children | 329b7921a6be |
line wrap: on
line source
#ifndef __core__array_h #define __core__array_h #ifndef ARRAYSIZE #define ARRAYSIZE(x) \ (sizeof(x) / sizeof(x[0])) #endif #endif // __core__array_h