1 | // Note: Not guaranteed to work by Java VM spec; |
2 | // should do this in transpiler |
3 | static S currentFunctionName() { |
4 | ret new Throwable().getStackTrace()[1].getMethodName(); |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012135 |
Snippet name: | currentFunctionName - get current function's name from stack trace |
Eternal ID of this version: | #1012135/3 |
Text MD5: | bb524c3ee22b0589f4275f0e54d78838 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-21 10:07:31 |
Source code size: | 177 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 345 / 359 |
Version history: | 2 change(s) |
Referenced in: | [show references] |