summaryrefslogtreecommitdiff
path: root/src/target/arm11.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-28 07:29:18 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-28 07:29:18 +0000
commit9ba80f08f47285817acbd22970ed2fe2855c21d2 (patch)
treecd95cc4de736d1bbfe133d58af256a0fc97ad448 /src/target/arm11.h
parent5df0a88e019b55708619dd9471ba9907573fed4c (diff)
downloadopenocd+libswd-9ba80f08f47285817acbd22970ed2fe2855c21d2.tar.gz
openocd+libswd-9ba80f08f47285817acbd22970ed2fe2855c21d2.tar.bz2
openocd+libswd-9ba80f08f47285817acbd22970ed2fe2855c21d2.tar.xz
openocd+libswd-9ba80f08f47285817acbd22970ed2fe2855c21d2.zip
Michael Bruck <mbruck@digenius.de> macros for error handling
git-svn-id: svn://svn.berlios.de/openocd/trunk@1551 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm11.h')
-rw-r--r--src/target/arm11.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/target/arm11.h b/src/target/arm11.h
index 5c83ec69..f8fea1a1 100644
--- a/src/target/arm11.h
+++ b/src/target/arm11.h
@@ -51,6 +51,16 @@
#define ARM11_TAP_DEFAULT TAP_INVALID
+#define CHECK_RETVAL(action) \
+do { \
+ int __retval = (action); \
+ \
+ if (__retval != ERROR_OK) \
+ return __retval; \
+ \
+} while (0)
+
+
typedef struct arm11_register_history_s
{
u32 value;