common.h

changeset 59
891b9e6ee139
parent 50
2e333a3ca49a
child 63
0557babc8675
--- 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);

mercurial