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
3e5dd40a
Unverified
Commit
3e5dd40a
authored
Mar 24, 2019
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Mar 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4339 from shuujii/fix-arguments-spec-in-src-proc.c
Fix arguments spec in `src/proc.c`
parents
e36db51b
10a8e0f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/proc.c
src/proc.c
+3
-3
No files found.
src/proc.c
View file @
3e5dd40a
...
...
@@ -301,7 +301,7 @@ mrb_init_proc(mrb_state *mrb)
call_irep
->
ilen
=
1
;
call_irep
->
nregs
=
2
;
/* receiver and block */
mrb_define_class_method
(
mrb
,
mrb
->
proc_class
,
"new"
,
mrb_proc_s_new
,
MRB_ARGS_
ANY
());
mrb_define_class_method
(
mrb
,
mrb
->
proc_class
,
"new"
,
mrb_proc_s_new
,
MRB_ARGS_
NONE
()
|
MRB_ARGS_BLOCK
());
mrb_define_method
(
mrb
,
mrb
->
proc_class
,
"initialize_copy"
,
mrb_proc_init_copy
,
MRB_ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
mrb
->
proc_class
,
"arity"
,
mrb_proc_arity
,
MRB_ARGS_NONE
());
...
...
@@ -310,6 +310,6 @@ mrb_init_proc(mrb_state *mrb)
mrb_define_method_raw
(
mrb
,
mrb
->
proc_class
,
mrb_intern_lit
(
mrb
,
"call"
),
m
);
mrb_define_method_raw
(
mrb
,
mrb
->
proc_class
,
mrb_intern_lit
(
mrb
,
"[]"
),
m
);
mrb_define_class_method
(
mrb
,
mrb
->
kernel_module
,
"lambda"
,
proc_lambda
,
MRB_ARGS_NONE
());
/* 15.3.1.2.6 */
mrb_define_method
(
mrb
,
mrb
->
kernel_module
,
"lambda"
,
proc_lambda
,
MRB_ARGS_NONE
());
/* 15.3.1.3.27 */
mrb_define_class_method
(
mrb
,
mrb
->
kernel_module
,
"lambda"
,
proc_lambda
,
MRB_ARGS_NONE
()
|
MRB_ARGS_BLOCK
()
);
/* 15.3.1.2.6 */
mrb_define_method
(
mrb
,
mrb
->
kernel_module
,
"lambda"
,
proc_lambda
,
MRB_ARGS_NONE
()
|
MRB_ARGS_BLOCK
()
);
/* 15.3.1.3.27 */
}
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