summaryrefslogtreecommitdiffstats
path: root/server/red_common.h
diff options
context:
space:
mode:
authorIzik Eidus <ieidus@redhat.com>2010-01-28 04:44:43 +0200
committerIzik Eidus <ieidus@redhat.com>2010-01-28 04:46:29 +0200
commit2ba69f9f8819daaa3d166c4c1c7e03b121b88a95 (patch)
treeaf28f5f7a71af15769c6447ccf4b6e10e8d60644 /server/red_common.h
parent766c74f63cb005ba614c11a59b5da844f01cb335 (diff)
downloadspice-2ba69f9f8819daaa3d166c4c1c7e03b121b88a95.tar.gz
spice-2ba69f9f8819daaa3d166c4c1c7e03b121b88a95.tar.xz
spice-2ba69f9f8819daaa3d166c4c1c7e03b121b88a95.zip
libspice: add surface 0 support
This include alot of infestracture for off screens. Signed-off-by: Izik Eidus <ieidus@redhat.com>
Diffstat (limited to 'server/red_common.h')
-rw-r--r--server/red_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/red_common.h b/server/red_common.h
index fafb2841..f505868c 100644
--- a/server/red_common.h
+++ b/server/red_common.h
@@ -48,6 +48,11 @@
abort(); \
}
+#define PANIC_ON(x) if ((x)) { \
+ printf("%s: panic %s\n", __FUNCTION__, #x); \
+ abort(); \
+}
+
#define TRUE 1
#define FALSE 0