diff options
author | George Peter Banyard <girgias@php.net> | 2020-05-18 01:13:11 +0200 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-05-18 12:24:23 +0200 |
commit | 3302ffb09e32f0e007426e8740ba39fc26682716 (patch) | |
tree | e0ecb56ccb1ef6c115e32db352abf3bb8397ee3b /TSRM | |
parent | 0695048e20579850f05ac134cae27004de9adab9 (diff) | |
download | php-git-3302ffb09e32f0e007426e8740ba39fc26682716.tar.gz |
Fix bogus check in TSRM and adjust TSRM_ASSERT macro
Closes GH-5562
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/TSRM.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index bcd5c806b1..acd1c395d7 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -17,11 +17,11 @@ #include <stdio.h> #include <stdarg.h> -#ifdef ZEND_DEBUG +#if ZEND_DEBUG # include <assert.h> -# define TSRM_ASSERT assert +# define TSRM_ASSERT(c) assert(c) #else -# define TSRM_ASSERT +# define TSRM_ASSERT(c) #endif typedef struct _tsrm_tls_entry tsrm_tls_entry; |