1 | !include once #1027168 // programID variable |
2 | |
3 | static String getProgramID() { |
4 | return nempty(programID) ? formatSnippetIDOpt(programID) : "?"; |
5 | } |
6 | |
7 | ifndef LeanMode |
8 | // TODO: ask JavaX instead |
9 | static String getProgramID(Class c) { |
10 | S id = (String) getOpt(c, "programID"); |
11 | if (nempty(id)) |
12 | ret formatSnippetID(id); |
13 | ret "?"; |
14 | } |
15 | endifndef |
16 | |
17 | static String getProgramID(Object o) { |
18 | ret getProgramID(getMainClass(o)); |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1001112 |
Snippet name: | getProgramID - now returns formatted ID |
Eternal ID of this version: | #1001112/3 |
Text MD5: | a9efb76ce590e93ada5d95c6dc285bf4 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-23 22:09:03 |
Source code size: | 435 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 775 / 6696 |
Version history: | 2 change(s) |
Referenced in: | [show references] |