MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / lcatf

Method lcatf

src/Platform/OutputMemory.cpp:135–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135size_t OutputBuffer::lcatf(const char *_ecv_array fmt, ...) noexcept
136{
137 size_t extra = 0;
138 if (last->dataLength != 0 && last->data[last->dataLength - 1] != '\n')
139 {
140 extra = cat('\n');
141 if (extra == 0)
142 {
143 return 0;
144 }
145 }
146
147 va_list vargs;
148 va_start(vargs, fmt);
149 const size_t ret = vcatf(fmt, vargs);
150 va_end(vargs);
151 return ret + extra;
152}
153
154size_t OutputBuffer::copy(const char c) noexcept
155{

Callers 15

ReportOneProtocolMethod · 0.80
CommonDiagnosticsMethod · 0.80
DiagnosticsMethod · 0.80
DiagnosticsMethod · 0.80
DiagnosticsMethod · 0.80
DiagnosticsMethod · 0.80
ListObjectsMethod · 0.80
DiagnosticsMethod · 0.80
THROWSFunction · 0.80
GCodes2.cppFile · 0.80
DiagnosticsMethod · 0.80
DiagnosticsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected