1 | static boolean warn_on = true; |
2 | static new ThreadLocal<LS> warn_warnings; |
3 | |
4 | static void warn(S s) {
|
5 | if (warn_on) |
6 | print("Warning: " + s);
|
7 | } |
8 | |
9 | static void warn(S s, L<S> warnings) {
|
10 | warn(s); |
11 | if (warnings != null) |
12 | warnings.add(s); |
13 | addToCollection(warn_warnings!, s); |
14 | } |
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: | 1370 / 1569 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |