Skip to content

Commit

Permalink
Add PHPC_VAL_IS_TRUE and PHPC_VAL_IS_FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka committed Feb 5, 2016
1 parent 3cc3010 commit eb37b81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ typedef zval * phpc_val;
#define PHPC_ZVAL_IS_FALSE(_zv) \
(Z_TYPE(_zv) == IS_BOOL && !Z_BVAL(_zv))

#define PHPC_VAL_IS_TRUE(_pv) PHPC_ZVAL_IS_TRUE(*_pv)
#define PHPC_VAL_IS_FALSE(_pv) PHPC_ZVAL_IS_FALSE(*_pv)

/* Function end */
#if (PHP_MINOR_VERSION == 3 && PHP_RELEASE_VERSION >= 7) || (PHP_MINOR_VERSION >= 4)
Expand Down Expand Up @@ -1029,6 +1031,8 @@ typedef zval phpc_val;
#define PHPC_ZVAL_IS_FALSE(_zv) \
(Z_TYPE(_zv) == IS_FALSE)

#define PHPC_VAL_IS_TRUE PHPC_ZVAL_IS_TRUE
#define PHPC_VAL_IS_FALSE PHPC_ZVAL_IS_FALSE

#define PHPC_FE_END PHP_FE_END

Expand Down

0 comments on commit eb37b81

Please sign in to comment.