1 | // f can return false to suppress regular printing |
2 | // call print_raw within f to actually print something |
3 | // f preferrably is F1<S, Bool> |
4 | static O interceptPrintInThisThread(O f) {
|
5 | O old = print_byThread()!; |
6 | print_byThread().set(f); |
7 | ret old; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005762 |
| Snippet name: | interceptPrintInThisThread |
| Eternal ID of this version: | #1005762/8 |
| Text MD5: | a1633c54a8a2498a3459af96aed4b2d8 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-13 16:20:15 |
| Source code size: | 256 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 937 / 939 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |