ludic.base: sb_stdout - a StrBuf's bytes to standard output with no string made (a per-frame log line the fence would otherwise see kept)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
88580ca319
commit
f4233ba11d
1 changed files with 7 additions and 0 deletions
|
|
@ -64,3 +64,10 @@ export function sb_pat(sb: StrBuf, pat: string, a: string, b: string, c: string,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# the buffer's bytes to standard output as they are (no string made, no newline added): a line a
|
||||||
|
# frame's code writes without the fence seeing a text kept
|
||||||
|
export function sb_stdout(sb: StrBuf) -> void {
|
||||||
|
if sb.n <= 0 { return }
|
||||||
|
unsafe { file_write(file_stdout(), data_of(sb.b), sb.n) }
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue