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
e52533a7
Commit
e52533a7
authored
Jun 05, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Kernel#raise/fail argument description
parent
9763726e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mrbgems/mruby-kernel-ext/src/kernel.c
mrbgems/mruby-kernel-ext/src/kernel.c
+1
-1
src/kernel.c
src/kernel.c
+1
-1
No files found.
mrbgems/mruby-kernel-ext/src/kernel.c
View file @
e52533a7
...
...
@@ -26,7 +26,7 @@ mrb_mruby_kernel_ext_gem_init(mrb_state *mrb)
{
struct
RClass
*
krn
=
mrb
->
kernel_module
;
mrb_define_module_function
(
mrb
,
krn
,
"fail"
,
mrb_f_raise
,
MRB_ARGS_
NONE
(
));
mrb_define_module_function
(
mrb
,
krn
,
"fail"
,
mrb_f_raise
,
MRB_ARGS_
OPT
(
2
));
mrb_define_method
(
mrb
,
krn
,
"__method__"
,
mrb_f_method
,
MRB_ARGS_NONE
());
}
...
...
src/kernel.c
View file @
e52533a7
...
...
@@ -1118,7 +1118,7 @@ mrb_init_kernel(mrb_state *mrb)
mrb_define_class_method
(
mrb
,
krn
,
"iterator?"
,
mrb_f_block_given_p_m
,
MRB_ARGS_NONE
());
/* 15.3.1.2.5 */
mrb_define_class_method
(
mrb
,
krn
,
"local_variables"
,
mrb_local_variables
,
MRB_ARGS_NONE
());
/* 15.3.1.2.7 */
;
/* 15.3.1.2.11 */
mrb_define_class_method
(
mrb
,
krn
,
"raise"
,
mrb_f_raise
,
MRB_ARGS_
ANY
());
/* 15.3.1.2.12 */
mrb_define_class_method
(
mrb
,
krn
,
"raise"
,
mrb_f_raise
,
MRB_ARGS_
OPT
(
2
));
/* 15.3.1.2.12 */
mrb_define_method
(
mrb
,
krn
,
"singleton_class"
,
mrb_singleton_class
,
MRB_ARGS_NONE
());
...
...
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