static <A> A dm_callModuleOpt(O moduleOrID, S method, O... args) { O mod = dm_getModule(moduleOrID); if (mod == null) null; temp dm_enter(mod); ret (A) callOpt_withVarargs(mod, method, args); }
Began life as a copy of #1018561
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lnbujpyubztb, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1019141 |
Snippet name: | dm_callModuleOpt - call optional function in a module |
Eternal ID of this version: | #1019141/3 |
Text MD5: | 1f05a097dc1fda1a62ed679f3b2dd1cf |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-07 21:31:19 |
Source code size: | 206 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 346 / 399 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020131 - dm_get - get field from module + synonym of dm_heldObject #1020139 - dm_call - call function in a module. should also work from a non-module if moduleOrID is a direct reference |