1 | static void upgradeModuleVar(fS moduleVar, fS programID, final bool callMain) {
|
2 | S name = snippetWithTitle(programID); |
3 | upgradeModuleVar(moduleVar, programID, name, callMain); |
4 | } |
5 | |
6 | static void upgradeModuleVar(fS moduleVar, fS programID, S name, final bool callMain) {
|
7 | upgradeModuleVar(moduleVar, programID, name, callMain, null); |
8 | } |
9 | |
10 | static void upgradeModuleVar(fS moduleVar, fS programID, S name, final bool callMain, O afterRestart) {
|
11 | infoBox("Upgrading module " + name);
|
12 | O module = get(mc(), moduleVar); |
13 | cleanUp(module); |
14 | set(mc(), moduleVar, null); |
15 | module = hotwireDependent(programID); |
16 | if (callMain) callMain(module); |
17 | set(mc(), moduleVar, module); |
18 | pcallF(afterRestart); |
19 | infoBox("Upgraded module " + name);
|
20 | } |
Began life as a copy of #1013937
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: | #1013942 |
| Snippet name: | upgradeModuleVar |
| Eternal ID of this version: | #1013942/5 |
| Text MD5: | c4e21f98689985f7d579bfbf186359f6 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-03-20 22:55:07 |
| Source code size: | 751 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 636 / 676 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |