Created
July 26, 2010 20:48
-
-
Save jakedouglas/491217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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