Skip to content

Commit fc401f8

Browse files
committed
Extract GC_BENCH into zend_gc.h
This constant is used in zend.c
1 parent bb1d3de commit fc401f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Zend/zend_gc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@
6969
#include "zend.h"
7070
#include "zend_API.h"
7171

72-
#ifndef GC_BENCH
73-
# define GC_BENCH 0
74-
#endif
75-
7672
#ifndef ZEND_GC_DEBUG
7773
# define ZEND_GC_DEBUG 0
7874
#endif

Zend/zend_gc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
BEGIN_EXTERN_C()
2424

25+
#ifndef GC_BENCH
26+
# define GC_BENCH 0
27+
#endif
28+
2529
typedef struct _zend_gc_status {
2630
uint32_t runs;
2731
uint32_t collected;

0 commit comments

Comments
 (0)