diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-22 16:23:38 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-05-03 14:44:11 +0200 |
commit | edfe2683583d7a849661cc08dc1964a5c925dff2 (patch) | |
tree | d39eb4af0fba0299b130dbb7b5d8ebe82f53e640 /common | |
parent | 48db4c2181d4918b0e2727d0bbe864b9e8019d85 (diff) | |
download | spice-edfe2683583d7a849661cc08dc1964a5c925dff2.tar.gz spice-edfe2683583d7a849661cc08dc1964a5c925dff2.tar.xz spice-edfe2683583d7a849661cc08dc1964a5c925dff2.zip |
common: use PANIC from spice_common.h
Diffstat (limited to 'common')
-rw-r--r-- | common/canvas_base.c | 7 | ||||
-rw-r--r-- | common/ogl_ctx.c | 6 | ||||
-rw-r--r-- | common/pixman_utils.c | 7 |
3 files changed, 0 insertions, 20 deletions
diff --git a/common/canvas_base.c b/common/canvas_base.c index a8db3672..d11c8ec0 100644 --- a/common/canvas_base.c +++ b/common/canvas_base.c @@ -54,13 +54,6 @@ #define WARN(x) printf("warning: %s\n", x) #endif -#ifndef PANIC -#define PANIC(str) { \ - printf("%s: panic: %s", __FUNCTION__, str); \ - abort(); \ -} -#endif - #ifndef DBG #define DBG(level, format, ...) printf("%s: debug: " format "\n", __FUNCTION__, ## __VA_ARGS__); #endif diff --git a/common/ogl_ctx.c b/common/ogl_ctx.c index 072a0c0e..76a35514 100644 --- a/common/ogl_ctx.c +++ b/common/ogl_ctx.c @@ -26,12 +26,6 @@ #include "ogl_ctx.h" - -#define PANIC(str) { \ - printf("%s: panic: %s", __FUNCTION__, str); \ - abort(); \ -} - enum { OGLCTX_TYPE_PBUF, OGLCTX_TYPE_PIXMAP, diff --git a/common/pixman_utils.c b/common/pixman_utils.c index 99a30050..9f3f1dee 100644 --- a/common/pixman_utils.c +++ b/common/pixman_utils.c @@ -28,13 +28,6 @@ #include <stdio.h> #include "mem.h" -#ifndef PANIC -#define PANIC(str) { \ - printf("%s: panic: %s", __FUNCTION__, str); \ - abort(); \ -} -#endif - #define SOLID_RASTER_OP(_name, _size, _type, _equation) \ static void \ solid_rop_ ## _name ## _ ## _size (_type *ptr, int len, _type src) \ |