summaryrefslogtreecommitdiff
path: root/camlibs/dimera
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2001-10-16 18:45:10 +0000
committerDan Fandrich <dan@coneharvesters.com>2001-10-16 18:45:10 +0000
commit1f2e51a853d3649cc6baf3ade413d1b299c9c0bf (patch)
tree533b3cc3206da6ac72ec4bc8998ffddd51a049bb /camlibs/dimera
parentdd32bd757a81986d3390269c2b4ad74795224edd (diff)
downloadlibgphoto2-1f2e51a853d3649cc6baf3ade413d1b299c9c0bf.tar.gz
Added CHECK macro to ease error handling
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2558 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/dimera')
-rw-r--r--camlibs/dimera/mesalib.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/camlibs/dimera/mesalib.h b/camlibs/dimera/mesalib.h
index 0ba82aa22..ef6223bab 100644
--- a/camlibs/dimera/mesalib.h
+++ b/camlibs/dimera/mesalib.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000, Brian Beattie <beattie@aracnet.com>
+ * Copyright (C) 2000-2001, Brian Beattie <beattie@aracnet.com>, et. al.
*
* This software was created with the help of proprietary
* information belonging to StarDot Technologies
@@ -11,6 +11,9 @@
*
* History:
* $Log$
+ * Revision 1.4 2001/10/16 18:45:10 dfandrich
+ * Added CHECK macro to ease error handling
+ *
* Revision 1.3 2001/09/10 20:25:44 dfandrich
* Added missing types for Solaris
*
@@ -30,6 +33,8 @@ typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
#endif
+#define CHECK(result) {int res = (result); if (res < 0) return (res);}
+
/* MESA commands */
#define NOP 0x01 /* No operation */
#define MESA_VERSION 0x05 /* Send Version command */
@@ -184,4 +189,5 @@ int32_t
mesa_read_image_info( gp_port *port, int i, struct mesa_image_info *info );
u_int8_t *
mesa_get_image( gp_port *port, int image );
+
#endif /* MESALIB_H */