Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

All snippets
Create a snippet
Full search

Quick search:


Editing Snippet ID: #1009545
Snippet name:
Category, Type:
Content:
static bool tok_hasClassRef2(L<S> tok, S className) { int n = l(tok); int level = 0; for (int i = 1; i < n; i += 2) { S t = tok.get(i); if (eqOneOf(t, "ifclass", "ifndef")) ++level; else if (eqOneOf(t, "endif", "endifndef")) --level; else if (level <= 0 && eq(t, className)) true; } false; }
Comment:
Public (visible to everyone):
Created: 2017-08-07 17:42:41

This page without fancy editor.