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

16
LINES

< > BotCompany Repo | #1029049 // dm_call_resolved - call function in an already resolved module

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2563L) is out of date.

sO mapMethodLike dm_call_resolved(O mod, S method, O... args) {
  if (mod == null) null;
  ifdef dm_call_resolved_timing
    long nanos = nanoTime();
  endifdef
  temp dm_enter_resolved(mod);
  ifdef dm_call_resolved_timing
    long nanos2 = nanoTime()-nanos;
  endifdef
  O o = call_withVarargs(mod, method, args);
  ifdef dm_call_resolved_timing
    long nanos3 = nanoTime()-nanos;
    print("nanos in dm_enter/call: "+ nanos2 + "/" + nanos3);
  endifdef
  ret o;
}

Author comment

Began life as a copy of #1020139

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029049
Snippet name: dm_call_resolved - call function in an already resolved module
Eternal ID of this version: #1029049/7
Text MD5: 2237ca834b459c010aee91aa50f08034
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-17 18:36:15
Source code size: 482 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 190 / 289
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)