summaryrefslogtreecommitdiff
path: root/src/cairo-mutex-type-private.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2007-05-01 00:44:42 -0400
committerBehdad Esfahbod <behdad@behdad.org>2007-05-01 19:20:05 -0400
commitf9154f7eda4272ff99cc8a894082cc5aa1b008ef (patch)
tree3931d2cd87af1e2fc5ff5e9c6dc045dda69d7ec4 /src/cairo-mutex-type-private.h
parenta8d47d0c001a36ddd6c9f09247e6eada408edb24 (diff)
downloadcairo-f9154f7eda4272ff99cc8a894082cc5aa1b008ef.tar.gz
[cairo-mutex] Make sure CAIRO_MUTEX_FINI() evaluates its argument once
Diffstat (limited to 'src/cairo-mutex-type-private.h')
-rw-r--r--src/cairo-mutex-type-private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-mutex-type-private.h b/src/cairo-mutex-type-private.h
index 34b7897d8..a98af2830 100644
--- a/src/cairo-mutex-type-private.h
+++ b/src/cairo-mutex-type-private.h
@@ -52,7 +52,8 @@ CAIRO_BEGIN_DECLS
/* A fully qualified no-operation statement */
#define CAIRO_MUTEX_NOOP do {/*no-op*/} while (0)
-
+/* And one that evaluates it's argument once */
+#define CAIRO_MUTEX_NOOP1(expr) do { if (expr) ; } while (0)
#if CAIRO_NO_MUTEX