Skip to content

Commit 84c6b60

Browse files
authored
Merge pull request #154 from sue445/feature/add_special_consts
Add Qnil and Qundef
2 parents bfe99cb + 1cf19be commit 84c6b60

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ruby/ruby_internal_special_consts.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@ func Qtrue() VALUE {
1616
func Qfalse() VALUE {
1717
return VALUE(C.Qfalse)
1818
}
19+
20+
// Qnil returns `Qnil` in C
21+
func Qnil() VALUE {
22+
return VALUE(C.Qnil)
23+
}
24+
25+
// Qundef returns `Qundef` in C
26+
func Qundef() VALUE {
27+
return VALUE(C.Qundef)
28+
}

0 commit comments

Comments
 (0)