diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-22 16:39:29 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-05-03 14:44:11 +0200 |
commit | 7ba1c22a180f96f020a38c1e4f0a0d1599e60989 (patch) | |
tree | 6624ebae1b7596f495eca9ba85a5299bb40eafb3 /glc.c | |
parent | 875520739d77014c7f88b9bf4ce2488d235c5376 (diff) | |
download | spice-common-7ba1c22a180f96f020a38c1e4f0a0d1599e60989.tar.gz spice-common-7ba1c22a180f96f020a38c1e4f0a0d1599e60989.tar.xz spice-common-7ba1c22a180f96f020a38c1e4f0a0d1599e60989.zip |
move WARN and WARN_ONCE to spice_common.h
Diffstat (limited to 'glc.c')
-rw-r--r-- | glc.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -39,14 +39,7 @@ #include "mem.h" #include "glc.h" #include "gl_utils.h" - -#define WARN_ONCE(x) { \ - static int warn = TRUE; \ - if (warn) { \ - printf x; \ - warn = FALSE; \ - } \ -} +#include "spice_common.h" #define TESS_VERTEX_ALLOC_BUNCH 20 @@ -1015,7 +1008,7 @@ void _glc_fill_mask(GLCCtx glc, int x_dest, int y_dest, int width, int height, i ASSERT(ctx && bitmap); start_draw(ctx); if (ctx->pat) { - WARN_ONCE(("%s: unimplemented fill mask with pattern\n", __FUNCTION__)); + WARN_ONCE("%s: unimplemented fill mask with pattern\n", __FUNCTION__); } fill_mask(ctx, x_dest, y_dest, width, height, stride, bitmap); } |