diff options
| author | Felix Jones <[email protected]> | 2016-11-10 19:51:56 +0000 |
|---|---|---|
| committer | Felix Jones <[email protected]> | 2016-11-10 19:51:56 +0000 |
| commit | e3c8092ccdd3a9991ccd31634e28e9a5a0e29d91 (patch) | |
| tree | e1509a58e465700a059aef71b9e0a2554e8c517f /include/mruby.h | |
| parent | cc5f40b2dbcd8e0ea703e820dcf203619b5f1003 (diff) | |
| download | mruby-e3c8092ccdd3a9991ccd31634e28e9a5a0e29d91.tar.gz mruby-e3c8092ccdd3a9991ccd31634e28e9a5a0e29d91.zip | |
Renamed class_under_defined to class_defined_under
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mruby.h b/include/mruby.h index 886b15e50..1b227d41a 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -578,10 +578,10 @@ MRB_API struct RClass * mrb_class_get(mrb_state *mrb, const char *name); * example_outer = mrb_define_module(mrb, "ExampleOuter"); * * example_inner = mrb_define_class_under(mrb, example_outer, "ExampleInner", mrb->object_class); - * cd = mrb_class_under_defined(mrb, example_outer, "ExampleInner"); + * cd = mrb_class_defined_under(mrb, example_outer, "ExampleInner"); * - * // If mrb_class_under_defined returns 1 then puts "True" - * // If mrb_class_under_defined returns 0 then puts "False" + * // If mrb_class_defined_under returns 1 then puts "True" + * // If mrb_class_defined_under returns 0 then puts "False" * if (cd == 1){ * puts("True"); * } @@ -595,7 +595,7 @@ MRB_API struct RClass * mrb_class_get(mrb_state *mrb, const char *name); * @param [const char *] name A string representing the name of the inner class. * @return [mrb_bool] A boolean value. */ -MRB_API mrb_bool mrb_class_under_defined(mrb_state *mrb, struct RClass *outer, const char *name); +MRB_API mrb_bool mrb_class_defined_under(mrb_state *mrb, struct RClass *outer, const char *name); /** * Gets a child class. |
