static long mapMethodLike printN2(S s, long n) { print(s, n2(n)); ret n; } static long printN2(long n) { print(n2(n)); ret n; } static void print_noNewLine(String s) { ifndef LeanMode try { O f = getThreadLocal(print_byThread_dontCreate()); if (f == null) f = print_allThreads; if (f != null) // We do need the general callF machinery here as print_byThread is sometimes shared between modules if (isFalse( ifclass F1 f instanceof F1 ? f/F1.get(s) : endif callF(f, s))) ret; } catch e { System.out.println(getStackTrace(e)); } endifndef print_raw(s); } static void print_raw(String s) { ifndef LeanMode if (print_preprocess != null) s = (S) callF(print_preprocess, s); s = fixNewLines(s); endifndef Appendable loc = local_log; Appendable buf = print_log; int loc_max = print_log_max; if (buf != loc && buf != null) { print_append(buf, s, print_log_max); loc_max = local_log_max; } if (loc != null) print_append(loc, s, loc_max); ifdef print_rst rst_printBuf.append(s); rst_print.trigger(); endifdef ifndef print_rst if (printAlsoToSystemOut) System.out.print(s); endifndef ifndef NoVMBus vmBus_send printed(mc(), s); endifndef } svoid print_autoRotate() { ifdef NotifyingPrintLog makeNotifyingStringBufferRotate(local_log, () -> local_log_max); endifdef }