Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2020-03-09 14:36:27 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2020-03-09 14:36:27 +0300
commitd5dadaf63552360e3e663cdcffd706b859c3ea83 (patch)
tree057bb3b636fa96be42c8e370a35d4c6dc4fd389d /redis_cluster.h
parent92f8dde1c996d4e1c3d79226b888119307612c40 (diff)
Add PHPREDIS_GET_OBJECT and PHPREDIS_ZVAL_GET_OBJECT macros
Diffstat (limited to 'redis_cluster.h')
-rw-r--r--redis_cluster.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/redis_cluster.h b/redis_cluster.h
index 414c489d..68a0273c 100644
--- a/redis_cluster.h
+++ b/redis_cluster.h
@@ -10,8 +10,7 @@
#define REDIS_CLUSTER_MOD (REDIS_CLUSTER_SLOTS-1)
/* Get attached object context */
-#define GET_CONTEXT() \
- ((redisCluster *)((char *)Z_OBJ_P(getThis()) - XtOffsetOf(redisCluster, std)))
+#define GET_CONTEXT() PHPREDIS_ZVAL_GET_OBJECT(redisCluster, getThis())
/* Command building/processing is identical for every command */
#define CLUSTER_BUILD_CMD(name, c, cmd, cmd_len, slot) \