Transpiled version (5451L) is out of date.
svoid tok_printIfdef(LS tok) { for (S keyword : ll("print", "printVars")) for (int i : jfind_all_reversed(tok, keyword + " ifdef <id>")) { S flag = tok.get(i+4); int iEnd = tok_findEndOfStatement(tok, i+6); S args = joinSubList(tok, i+6, iEnd); tokReplace_reTok(tok, i, iEnd, "ifdef \*flag*/ \*keyword*/ \*args*/ endifdef "); } }
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: | 145 / 219 |
Version history: | 3 change(s) |
Referenced in: | [show references] |