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
af3aecd9
Commit
af3aecd9
authored
Oct 12, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2916 from felixjones/master
mrb_get_mid and mrb_get_argc
parents
8ab39865
8e72558b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
include/mruby.h
include/mruby.h
+12
-0
No files found.
include/mruby.h
View file @
af3aecd9
...
@@ -486,6 +486,18 @@ typedef const char *mrb_args_format;
...
@@ -486,6 +486,18 @@ typedef const char *mrb_args_format;
*/
*/
MRB_API
mrb_int
mrb_get_args
(
mrb_state
*
mrb
,
mrb_args_format
format
,
...);
MRB_API
mrb_int
mrb_get_args
(
mrb_state
*
mrb
,
mrb_args_format
format
,
...);
static
inline
mrb_sym
mrb_get_mid
(
mrb_state
*
mrb
)
/* get method symbol */
{
return
mrb
->
c
->
ci
->
mid
;
}
static
inline
int
mrb_get_argc
(
mrb_state
*
mrb
)
/* get argc */
{
return
mrb
->
c
->
ci
->
argc
;
}
/* `strlen` for character string literals (use with caution or `strlen` instead)
/* `strlen` for character string literals (use with caution or `strlen` instead)
Adjacent string literals are concatenated in C/C++ in translation phase 6.
Adjacent string literals are concatenated in C/C++ in translation phase 6.
If `lit` is not one, the compiler will report a syntax error:
If `lit` is not one, the compiler will report a syntax error:
...
...
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