Libraryless. Click here for Pure Java version (4699L/26K).
1 | sbool mapMethodLike dm_setFlag(S flagName, bool value default true) { |
2 | O mod = dm_current_generic(); |
3 | O stem = dm_stem(mod); |
4 | Int flagCode = cast getOpt flagName(stem); |
5 | if (flagCode == null) false; |
6 | call(stem, value ? "setFlag" : "clearFlag", flagCode); |
7 | true; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033388 |
Snippet name: | dm_setFlag |
Eternal ID of this version: | #1033388/6 |
Text MD5: | 45064ba3daf813b0a64bbddfda2dc9ef |
Transpilation MD5: | 2a8634864fd806001d1932c5e6388ef5 |
Author: | stefan |
Category: | javax / dynamic modules |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-27 01:19:14 |
Source code size: | 276 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 150 / 211 |
Version history: | 5 change(s) |
Referenced in: | [show references] |