Skip to content

Commit 47ac01c

Browse files
committed
Global: fix compiling
1 parent 23c8937 commit 47ac01c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/util/FFstrbuf.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ static inline void ffStrbufInit(FFstrbuf* strbuf)
121121
strbuf->chars = CHAR_NULL_PTR;
122122
}
123123

124+
static inline FFstrbuf ffStrbufCreate()
125+
{
126+
FFstrbuf result;
127+
ffStrbufInit(&result);
128+
return result;
129+
}
130+
124131
static inline void ffStrbufInitNS(FFstrbuf* strbuf, uint32_t length, const char* str)
125132
{
126133
ffStrbufInit(strbuf);

0 commit comments

Comments
 (0)