Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/util/FFstrbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,16 +275,22 @@ FF_C_NODISCARD static inline FFstrbuf ffStrbufCreateS(const char* str)
static inline void ffStrbufAppend(FFstrbuf* __restrict strbuf, const FFstrbuf* __restrict value)
{
assert(value != strbuf);
if(value == NULL)
return;
ffStrbufAppendNS(strbuf, value->length, value->chars);
}

static inline void ffStrbufPrepend(FFstrbuf* strbuf, FFstrbuf* value)
{
if(value == NULL)
return;
ffStrbufPrependNS(strbuf, value->length, value->chars);
}

static inline void ffStrbufPrependS(FFstrbuf* strbuf, const char* value)
{
if(value == NULL)
return;
ffStrbufPrependNS(strbuf, (uint32_t) strlen(value), value);
}

Expand Down