1#ifndef _C4_YML_WRITER_FILE_HPP_
2#define _C4_YML_WRITER_FILE_HPP_
6#ifndef _C4_YML_ERROR_HPP_
28 C4_ALWAYS_INLINE
void append(
const char (&a)[N])
noexcept
30 static_assert(N > 1,
"empty string");
31 (void)fwrite(a,
sizeof(
char), N - 1,
m_file);
38 C4_SUPPRESS_WARNING_GCC_CLANG_WITH_PUSH(
"-Wsign-conversion")
40 C4_SUPPRESS_WARNING_GCC_CLANG_POP
44 C4_ALWAYS_INLINE
void append(
const char c)
noexcept
49 C4_ALWAYS_INLINE
void append(
const char c,
size_t num_times)
noexcept
51 for(
size_t i = 0; i < num_times; ++i)
Error utilities used by ryml.
basic_substring< const char > csubstr
an immutable string view
(Undefined by default) Use shorter error message from checks/asserts: do not show the check condition...
void append(csubstr s) noexcept
void append(const char c) noexcept
WriterFile(FILE *f=nullptr) noexcept
void append(const char c, size_t num_times) noexcept
void append(const char(&a)[N]) noexcept