diff options
author | Tony Garnock-Jones <tonyg@lshift.net> | 2009-11-17 00:29:21 +0000 |
---|---|---|
committer | Tony Garnock-Jones <tonyg@lshift.net> | 2009-11-17 00:29:21 +0000 |
commit | 136afe97cfa1815d28f79fba98f16e342923a4d0 (patch) | |
tree | 84a2384d9a796d27045878dfbe257db2610f7280 /librabbitmq/amqp_private.h | |
parent | 4f7fdf5dd5f2749809f71fc3c556fc23f8832f10 (diff) | |
download | rabbitmq-c-github-ask-136afe97cfa1815d28f79fba98f16e342923a4d0.tar.gz |
Implement Qpid/RabbitMQ/0-9-1 field table types.
Diffstat (limited to 'librabbitmq/amqp_private.h')
-rw-r--r-- | librabbitmq/amqp_private.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/librabbitmq/amqp_private.h b/librabbitmq/amqp_private.h index 98a7a65..03a46fe 100644 --- a/librabbitmq/amqp_private.h +++ b/librabbitmq/amqp_private.h @@ -115,13 +115,15 @@ extern int amqp_encode_table(amqp_bytes_t encoded, } \ }) -#define AMQP_CHECK_RESULT(expr) \ +#define AMQP_CHECK_RESULT_CLEANUP(expr, stmts) \ ({ \ int _result = (expr); \ - if (_result < 0) return _result; \ + if (_result < 0) { stmts; return _result; } \ _result; \ }) +#define AMQP_CHECK_RESULT(expr) AMQP_CHECK_RESULT_CLEANUP(expr, ) + #define AMQP_CHECK_EOF_RESULT(expr) \ ({ \ int _result = (expr); \ |