static bool tok_hasClassRef(L tok, S className) { for (int i = 1; i < l(tok); i += 2) if (eq(tok.get(i), className)) if (eq(get(tok, i-2), "ifclass")) i = smartIndexOf(tok, "endif", i); else true; false; }