Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
fa5f5954
Unverified
Commit
fa5f5954
authored
6 years ago
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4112 from dearblue/fix-outer-module-name
Fix outer module name
parents
b7e5c866
292ea06d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/class.c
src/class.c
+2
-1
No files found.
src/class.c
View file @
fa5f5954
...
...
@@ -1701,7 +1701,8 @@ mrb_class_name(mrb_state *mrb, struct RClass* c)
{
mrb_value
path
=
mrb_class_path
(
mrb
,
c
);
if
(
mrb_nil_p
(
path
))
{
path
=
mrb_str_new_lit
(
mrb
,
"#<Class:"
);
path
=
c
->
tt
==
MRB_TT_MODULE
?
mrb_str_new_lit
(
mrb
,
"#<Module:"
)
:
mrb_str_new_lit
(
mrb
,
"#<Class:"
);
mrb_str_concat
(
mrb
,
path
,
mrb_ptr_to_str
(
mrb
,
c
));
mrb_str_cat_lit
(
mrb
,
path
,
">"
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment