Using CHANNEL_PRINTS to transfer printbuffers to stdout is now working.

This commit is contained in:
2025-12-15 23:35:47 -05:00
parent 9dc974ebca
commit 1b7f917cdf
8 changed files with 52 additions and 17 deletions

View File

@@ -179,6 +179,13 @@ void PrintBuffer::patch(StreamBuffer *sb, DebugCollector *dbc) {
}
}
bool PrintChanneler::have_prints(const PrintBuffer *printbuffer) const
{
return ((printbuffer != nullptr) &&
(printbuffer->first_line() < printbuffer->first_unchecked()) &&
(line_ < printbuffer->first_unchecked()));
}
bool PrintChanneler::channel(const PrintBuffer *printbuffer, StreamBuffer *sb) {
if (printbuffer == nullptr) return false;
if (printbuffer->first_line() > line_) {