lib

morphux C utility library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/lib

commit 7f345ccbafa387f189d2007367f9c504efb5d5b1
parent 095ed7971d0f43597a33c3f39580002b6766d78a
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Tue, 18 Jul 2017 18:02:52 +0200

Add(Utils): COUNTOF Macros, for easiers static sizeof counts

Diffstat:
Minc/m_util.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/inc/m_util.h b/inc/m_util.h @@ -34,6 +34,8 @@ # define FREE(ptr) free(ptr); ptr = NULL; +# define COUNTOF(ptr) (sizeof(ptr) / sizeof((ptr)[0])) + /*! * \brief Set flags for compilation output *