Created
October 26, 2011 00:36
-
-
Save dlitz/1314989 to your computer and use it in GitHub Desktop.
this is the test that happens for if, unless, etc.
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
RTEST(value) returns true if the value is implicitly true | |
./ruby.h: | |
#define RTEST(v) (((VALUE)(v) & ~Qnil) != 0) | |
... | |
#define Qfalse ((VALUE)0) | |
#define Qtrue ((VALUE)2) | |
#define Qnil ((VALUE)4) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment