Skip to content

Commit db2f669

Browse files
authored
Fix ZVAL_STATIC_INIT macro formatting for clang-format compatibility (#2009)
1 parent 14995d8 commit db2f669

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/phongo_compat.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,9 @@
9797
} while (0)
9898
#define ADD_NEXT_INDEX_STRINGL(_zv, _value, _len) add_next_index_stringl(_zv, _value, _len);
9999
#define PHONGO_RETVAL_SMART_STR(val) RETVAL_STRINGL(ZSTR_VAL((val).s), ZSTR_LEN((val).s));
100-
#define ZVAL_STATIC_INIT \
101-
{ \
102-
{ \
103-
0 \
104-
} \
105-
}
100+
/* clang-format off */
101+
#define ZVAL_STATIC_INIT { { 0 } }
102+
/* clang-format on */
106103

107104
#define ADD_NEXT_INDEX_INT64_OBJ(_zv, _value) \
108105
do { \

0 commit comments

Comments
 (0)