chiark / gitweb /
Ignore boring return codes properly.
[tripe] / common / util.h
index 1928c0428770a29607fa0377190aa66bdae54676..acdc0f6e909d79664321620ee2434fa48ccc2d5c 100644 (file)
   extern "C" {
 #endif
 
+/*----- Macros ------------------------------------------------------------*/
+
+/* --- @IGNORE@ --- *
+ *
+ * Arguments:  @expr@ = an expression whose value is to be ignored
+ *
+ * Use:                Ignores the value of an expression, even if compilers want
+ *             us not to.
+ */
+
+#define IGNORE(expr) do { if (expr) ; } while (0)
+
 /*----- Functions provided ------------------------------------------------*/
 
 /* --- @u_quotify@ --- *