| changeset 3961 | 0dc477c29792 |
| parent 3515 | c14c14e06cc1 |
1.1 --- a/public/sm_platform.h Mon Jul 29 10:03:18 2013 -0400 1.2 +++ b/public/sm_platform.h Sun Jul 21 11:53:56 2013 -0400 1.3 @@ -91,5 +91,9 @@ 1.4 #define SOURCEMOD_BUILD 1.5 #endif 1.6 1.7 +#if !defined SM_ARRAYSIZE 1.8 +#define SM_ARRAYSIZE(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x]))))) 1.9 +#endif 1.10 + 1.11 #endif //_INCLUDE_SOURCEMOD_PLATFORM_H_ 1.12