diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-03 08:59:07 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-03 08:59:07 -0700 |
| commit | 4c8fd5210ebc0eca146b515be33d57f2234a5813 (patch) | |
| tree | b9bdae5c3e2f2f785c3cd1bd126c933fff2c86e3 | |
| parent | fb44a674fbb1aa34083b3e86bdd03cbe85f19afe (diff) | |
| parent | db678329c00bd6cf08402c07e1f85f0752e9722e (diff) | |
| download | mruby-4c8fd5210ebc0eca146b515be33d57f2234a5813.tar.gz mruby-4c8fd5210ebc0eca146b515be33d57f2234a5813.zip | |
Merge pull request #1337 from suzukaze/add-comments-in-class-c
Add comments in mrb_get_args() func.
| -rw-r--r-- | src/class.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/class.c b/src/class.c index 237109936..0d71886d3 100644 --- a/src/class.c +++ b/src/class.c @@ -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, ...) |
