(fd: i32, s: &str)
| 316 | /// Mirrors `_Py_DumpASCII` truncation behavior. |
| 317 | #[cfg(any(unix, windows))] |
| 318 | fn dump_ascii(fd: i32, s: &str) { |
| 319 | let (truncated_s, was_truncated) = safe_truncate(s, MAX_STRING_LENGTH); |
| 320 | puts(fd, truncated_s); |
| 321 | if was_truncated { |
| 322 | puts(fd, "..."); |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | /// Write a frame's info to an fd using signal-safe I/O. |
| 327 | #[cfg(any(unix, windows))] |
no test coverage detected