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
88ac7549
Commit
88ac7549
authored
Apr 10, 2019
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `MRB_API` from `mrb_instance_new`.
parent
d0b30f4c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
include/mruby.h
include/mruby.h
+0
-2
include/mruby/class.h
include/mruby/class.h
+1
-0
src/class.c
src/class.c
+1
-1
No files found.
include/mruby.h
View file @
88ac7549
...
...
@@ -570,8 +570,6 @@ MRB_INLINE mrb_value mrb_class_new_instance(mrb_state *mrb, mrb_int argc, const
return
mrb_obj_new
(
mrb
,
c
,
argc
,
argv
);
}
MRB_API
mrb_value
mrb_instance_new
(
mrb_state
*
mrb
,
mrb_value
cv
);
/**
* Creates a new instance of Class, Class.
*
...
...
include/mruby/class.h
View file @
88ac7549
...
...
@@ -85,6 +85,7 @@ MRB_API mrb_method_t mrb_method_search_vm(mrb_state*, struct RClass**, mrb_sym);
MRB_API
mrb_method_t
mrb_method_search
(
mrb_state
*
,
struct
RClass
*
,
mrb_sym
);
MRB_API
struct
RClass
*
mrb_class_real
(
struct
RClass
*
cl
);
mrb_value
mrb_instance_new
(
mrb_state
*
mrb
,
mrb_value
cv
);
void
mrb_class_name_class
(
mrb_state
*
,
struct
RClass
*
,
struct
RClass
*
,
mrb_sym
);
mrb_value
mrb_class_find_path
(
mrb_state
*
,
struct
RClass
*
);
...
...
src/class.c
View file @
88ac7549
...
...
@@ -1498,7 +1498,7 @@ mrb_instance_alloc(mrb_state *mrb, mrb_value cv)
*
*/
MRB_API
mrb_value
mrb_value
mrb_instance_new
(
mrb_state
*
mrb
,
mrb_value
cv
)
{
mrb_value
obj
,
blk
;
...
...
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