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
a3434399
Unverified
Commit
a3434399
authored
Apr 29, 2020
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Apr 29, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4985 from dearblue/print-gems
Makes `mrb_any_to_s()` accept an object whose class is `NULL`
parents
e2ac2a82
49b2e8c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/class.c
src/class.c
+4
-1
src/string.c
src/string.c
+1
-1
No files found.
src/class.c
View file @
a3434399
...
...
@@ -1728,7 +1728,10 @@ mrb_class_real(struct RClass* cl)
MRB_API
const
char
*
mrb_class_name
(
mrb_state
*
mrb
,
struct
RClass
*
c
)
{
mrb_value
name
=
class_name_str
(
mrb
,
c
);
mrb_value
name
;
if
(
c
==
NULL
)
return
NULL
;
name
=
class_name_str
(
mrb
,
c
);
return
RSTRING_PTR
(
name
);
}
...
...
src/string.c
View file @
a3434399
...
...
@@ -2759,7 +2759,7 @@ mrb_str_cat(mrb_state *mrb, mrb_value str, const char *ptr, size_t len)
MRB_API
mrb_value
mrb_str_cat_cstr
(
mrb_state
*
mrb
,
mrb_value
str
,
const
char
*
ptr
)
{
return
mrb_str_cat
(
mrb
,
str
,
ptr
,
strlen
(
ptr
)
);
return
mrb_str_cat
(
mrb
,
str
,
ptr
,
ptr
?
strlen
(
ptr
)
:
0
);
}
MRB_API
mrb_value
...
...
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