Libraryless. Click here for Pure Java version (4545L/26K).
1 | static Runnable wrapAsActivity(O r) {
|
2 | if (r == null) null; |
3 | Runnable r2 = toRunnable(r); |
4 | ifdef LeanMode |
5 | ret r2; |
6 | endifdef |
7 | ifndef LeanMode |
8 | O mod = dm_current_generic(); |
9 | if (mod == null) ret r2; |
10 | ret r {
|
11 | AutoCloseable c = cast rcall enter(mod); |
12 | temp c; |
13 | r2.run(); |
14 | }; |
15 | endifndef |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014793 |
| Snippet name: | wrapAsActivity [LIVE version entering the current module] |
| Eternal ID of this version: | #1014793/13 |
| Text MD5: | fb6eaa51731a8b2e25d072cdbcfb9057 |
| Transpilation MD5: | 6a931e1ff3dca22f758cbf0ea7ea8abb |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-23 05:14:13 |
| Source code size: | 313 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 746 / 920 |
| Version history: | 12 change(s) |
| Referenced in: | [show references] |