diff -r c062273efa33 -r b3a33bc2e482 sources/basics.h --- a/sources/basics.h Sun Jan 10 20:05:27 2016 +0200 +++ b/sources/basics.h Sun Jan 10 20:53:44 2016 +0200 @@ -88,6 +88,10 @@ return (a < b) ? b : (a > c) ? c : a; } +template +char (&_ArraySizeHelper(T (&array)[N]))[N]; +#define countof(array) (sizeof(_ArraySizeHelper( array ))) + struct Exitception {}; END_ZFC_NAMESPACE