Transpiled version (5451L) is out of date.
1 | svoid tok_printIfdef(LS tok) { |
2 | for (S keyword : ll("print", "printVars")) |
3 | for (int i : jfind_all_reversed(tok, keyword + " ifdef <id>")) { |
4 | S flag = tok.get(i+4); |
5 | int iEnd = tok_findEndOfStatement(tok, i+6); |
6 | S args = joinSubList(tok, i+6, iEnd); |
7 | tokReplace_reTok(tok, i, iEnd, |
8 | "ifdef \*flag*/ \*keyword*/ \*args*/ endifdef "); |
9 | } |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033868 |
Snippet name: | tok_printIfdef |
Eternal ID of this version: | #1033868/4 |
Text MD5: | 8904f8043b2408113221a1527d362110 |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-22 18:24:44 |
Source code size: | 380 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 146 / 221 |
Version history: | 3 change(s) |
Referenced in: | [show references] |