summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/object.c b/object.c
index c58a46b293..d09c2444aa 100644
--- a/object.c
+++ b/object.c
@@ -3613,6 +3613,14 @@ InitVM_Object(void)
* An alias of +false+
*/
rb_define_global_const("FALSE", Qfalse);
+
+ {
+ VALUE names[3];
+ names[0] = ID2SYM(rb_intern_const("TRUE"));
+ names[1] = ID2SYM(rb_intern_const("FALSE"));
+ names[2] = ID2SYM(rb_intern_const("NIL"));
+ rb_mod_deprecate_constant(3, names, rb_cObject);
+ }
}
void