static boolean warn_on = true; static new ThreadLocal<LS> warn_warnings; static void warn(S s) { if (warn_on) print("Warning: " + s); } static void warn(S s, L<S> warnings) { warn(s); if (warnings != null) warnings.add(s); addToCollection(warn_warnings!, s); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002838 |
| Snippet name: | warn function (print warning unless warn_on is set to false) |
| Eternal ID of this version: | #1002838/2 |
| Text MD5: | 04b01080338afabe902c5488d2a3226f |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-05-19 12:54:54 |
| Source code size: | 291 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1369 / 1567 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1032823 - warnAndReturn #3000382 - Answer for ferdie (>> t = 1, f = 0) |