Skip to content

Commit 82278c7

Browse files
committed
smart_str: add smart_str_append_literal() macro
1 parent e080ba1 commit 82278c7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Zend/zend_smart_str.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ static zend_always_inline void smart_str_append(smart_str *dest, const zend_stri
180180
{
181181
smart_str_append_ex(dest, src, false);
182182
}
183+
#define smart_str_append_literal(dest, src) smart_str_appendl_ex(dest, "" src, sizeof(src)-1, false);
183184
static zend_always_inline void smart_str_appendc(smart_str *dest, char ch)
184185
{
185186
smart_str_appendc_ex(dest, ch, false);

0 commit comments

Comments
 (0)