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)

please include function ping.

sO makeDependent_postProcess;

static void makeDependent(O c) {
  if (c == null) ret;
  assertTrue("Not a class", c instanceof Class);
  dependentClasses(); // cleans up the list
  hotwire_classes.add(new WeakReference(c));
  
  O local_log = getOpt(mc(), "local_log");
  if (local_log != null)
    setOpt(c, +local_log);
    
  /*if (isTrue(getOpt(c, 'ping_actions_shareable)))
    setOpt(c, +ping_actions);*/
    
  O print_byThread = getOpt(mc(), "print_byThread");
  if (print_byThread != null)
    setOpt(c, +print_byThread);
    
  callF(makeDependent_postProcess, c);
}

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: 825 / 1566
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008864 - autoCleanUp - register object for automatic clean-up when program exits
#3000382 - Answer for ferdie (>> t = 1, f = 0)