File tree Expand file tree Collapse file tree 1 file changed +18
-26
lines changed
Expand file tree Collapse file tree 1 file changed +18
-26
lines changed Original file line number Diff line number Diff line change @@ -876,8 +876,6 @@ Init_enable_namespace(void)
876876 }
877877}
878878
879- #if RUBY_DEBUG > 0
880-
881879/* :nodoc: */
882880static VALUE
883881rb_namespace_s_root (VALUE recv )
@@ -892,6 +890,24 @@ rb_namespace_s_main(VALUE recv)
892890 return main_namespace -> ns_object ;
893891}
894892
893+ /* :nodoc: */
894+ static VALUE
895+ rb_namespace_root_p (VALUE namespace )
896+ {
897+ const rb_namespace_t * ns = (const rb_namespace_t * )rb_get_namespace_t (namespace );
898+ return RBOOL (NAMESPACE_ROOT_P (ns ));
899+ }
900+
901+ /* :nodoc: */
902+ static VALUE
903+ rb_namespace_main_p (VALUE namespace )
904+ {
905+ const rb_namespace_t * ns = (const rb_namespace_t * )rb_get_namespace_t (namespace );
906+ return RBOOL (NAMESPACE_MAIN_P (ns ));
907+ }
908+
909+ #if RUBY_DEBUG
910+
895911static const char *
896912classname (VALUE klass )
897913{
@@ -1027,30 +1043,6 @@ rb_f_dump_classext(VALUE recv, VALUE klass)
10271043 return res ;
10281044}
10291045
1030- /* :nodoc: */
1031- static VALUE
1032- rb_namespace_root_p (VALUE namespace )
1033- {
1034- const rb_namespace_t * ns = (const rb_namespace_t * )rb_get_namespace_t (namespace );
1035- return RBOOL (NAMESPACE_ROOT_P (ns ));
1036- }
1037-
1038- /* :nodoc: */
1039- static VALUE
1040- rb_namespace_main_p (VALUE namespace )
1041- {
1042- const rb_namespace_t * ns = (const rb_namespace_t * )rb_get_namespace_t (namespace );
1043- return RBOOL (NAMESPACE_MAIN_P (ns ));
1044- }
1045-
1046- /* :nodoc: */
1047- static VALUE
1048- rb_namespace_user_p (VALUE namespace )
1049- {
1050- const rb_namespace_t * ns = (const rb_namespace_t * )rb_get_namespace_t (namespace );
1051- return RBOOL (NAMESPACE_USER_P (ns ));
1052- }
1053-
10541046#endif /* RUBY_DEBUG */
10551047
10561048/*
You can’t perform that action at this time.
0 commit comments