Skip to content

Instantly share code, notes, and snippets.

@jakedouglas
Created July 26, 2010 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakedouglas/491217 to your computer and use it in GitHub Desktop.
Save jakedouglas/491217 to your computer and use it in GitHub Desktop.
bool Handle::valid_handle_p(STATE, Handle* handle) {
Handles* handles = state->shared.global_handles();
for(Handles::Iterator i(*handles); i.more(); i.advance()) {
if(*i == handle) return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment