Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

23
LINES

< > BotCompany Repo | #1003121 // makeDependent - register class for for cleanup and copy local_log

JavaX fragment (include)

1  
please include function ping.
2  
3  
sO makeDependent_postProcess;
4  
5  
static void makeDependent(O c) {
6  
  if (c == null) ret;
7  
  assertTrue("Not a class", c instanceof Class);
8  
  dependentClasses(); // cleans up the list
9  
  hotwire_classes.add(new WeakReference(c));
10  
  
11  
  O local_log = getOpt(mc(), "local_log");
12  
  if (local_log != null)
13  
    setOpt(c, +local_log);
14  
    
15  
  /*if (isTrue(getOpt(c, 'ping_actions_shareable)))
16  
    setOpt(c, +ping_actions);*/
17  
    
18  
  O print_byThread = getOpt(mc(), "print_byThread");
19  
  if (print_byThread != null)
20  
    setOpt(c, +print_byThread);
21  
    
22  
  callF(makeDependent_postProcess, c);
23  
}

Author comment

Began life as a copy of #1002921

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1003121
Snippet name: makeDependent - register class for for cleanup and copy local_log
Eternal ID of this version: #1003121/7
Text MD5: 718933e5e16c9e3f6e5e86641f448f9a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-07 01:03:58
Source code size: 631 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 826 / 1568
Version history: 6 change(s)
Referenced in: [show references]