X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Ftypes.h;h=5a1df5bd30fbc6f10c1269ebd8f9724e7bfc5242;hb=caed1f8c1a80db15b94da8a59bba3e95f7bd06db;hp=76f1f9e02f1acdfcbe9ab28b89d8c8d03ea76ba1;hpb=681721dddc91bcdaef50002d1e861cc8d484e938;p=rocksndiamonds.git diff --git a/src/libgame/types.h b/src/libgame/types.h index 76f1f9e0..5a1df5bd 100644 --- a/src/libgame/types.h +++ b/src/libgame/types.h @@ -14,6 +14,11 @@ #ifndef TYPES_H #define TYPES_H +#include +#include +#include +#include + typedef unsigned char boolean; typedef unsigned char byte; @@ -38,4 +43,7 @@ typedef unsigned char byte; #define SIGN(a) ((a) < 0 ? -1 : ((a)>0 ? 1 : 0)) #endif +#define SIZEOF_ARRAY(array, type) (sizeof(array) / sizeof(type)) +#define SIZEOF_ARRAY_INT(array) SIZEOF_ARRAY(array, int) + #endif /* TYPES_H */