mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1337 from suzukaze/add-comments-in-class-c
Add comments in mrb_get_args() func.
This commit is contained in:
+16
-14
@@ -375,20 +375,22 @@ to_hash(mrb_state *mrb, mrb_value val)
|
||||
|
||||
format specifiers:
|
||||
|
||||
o: Object [mrb_value]
|
||||
S: String [mrb_value]
|
||||
A: Array [mrb_value]
|
||||
H: Hash [mrb_value]
|
||||
s: String [char*,int]
|
||||
z: String [char*]
|
||||
a: Array [mrb_value*,mrb_int]
|
||||
f: Float [mrb_float]
|
||||
i: Integer [mrb_int]
|
||||
b: Boolean [mrb_bool]
|
||||
n: Symbol [mrb_sym]
|
||||
&: Block [mrb_value]
|
||||
*: rest argument [mrb_value*,int]
|
||||
|: optional
|
||||
string mruby type C type note
|
||||
----------------------------------------------------------------------------------------------
|
||||
o: Object [mrb_value]
|
||||
S: String [mrb_value]
|
||||
A: Array [mrb_value]
|
||||
H: Hash [mrb_value]
|
||||
s: String [char*,int] Receive two arguments.
|
||||
z: String [char*] NUL terminated string.
|
||||
a: Array [mrb_value*,mrb_int] Receive two arguments.
|
||||
f: Float [mrb_float]
|
||||
i: Integer [mrb_int]
|
||||
b: Boolean [mrb_bool]
|
||||
n: Symbol [mrb_sym]
|
||||
&: Block [mrb_value]
|
||||
*: rest argument [mrb_value*,int] Receive the rest of the arguments as an array.
|
||||
|: optional Next argument of '|' and later are optional.
|
||||
*/
|
||||
int
|
||||
mrb_get_args(mrb_state *mrb, const char *format, ...)
|
||||
|
||||
Reference in New Issue
Block a user