diff -r bc9317d1b9c9 -r 891b9e6ee139 common.h --- a/common.h Sat Aug 25 04:02:37 2012 +0300 +++ b/common.h Sat Aug 25 04:19:22 2012 +0300 @@ -84,6 +84,9 @@ // Plural expression #define PLURAL(n) (n != 1) ? "s" : "" +// Shortcut for zeroing something +#define ZERO(obj) memset (&obj, 0, sizeof (obj)); + void error (const char* text, ...); char* ObjectFileName (str s); bool fexists (char* path);