This is a port of the mruby/c tutorial Chapter 03 to the mbed environment.

Dependencies:   mbed

For details, refer to the following.

http://www.s-itoc.jp/activity/research/mrubyc/mrubyc_tutorial/436

Note:There is a change in rtt0.h from the original source in the mruby/c. It was necessary for inclusion in C ++ source.

Revision:
0:33feccbba3ff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mrubyc/class.h	Wed Feb 15 01:03:35 2017 +0000
@@ -0,0 +1,35 @@
+/*! @file
+  @brief
+
+  <pre>
+  Copyright (C) 2015-2016 Kyushu Institute of Technology.
+  Copyright (C) 2015-2016 Shimane IT Open-Innovation Center.
+
+  This file is distributed under BSD 3-Clause License.
+
+
+  </pre>
+*/
+
+#ifndef MRBC_SRC_CLASS_H_
+#define MRBC_SRC_CLASS_H_
+
+#include <stdint.h>
+#include "vm.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+mrb_class *find_class_by_object(struct VM *vm, mrb_object *obj);
+mrb_proc *find_method(struct VM *vm, mrb_value recv, mrb_sym sym_id);
+
+void mrbc_init_class(void);
+void mrbc_define_method(struct VM *vm, mrb_class *cls, const char *name, mrb_func_t func);
+void mrbc_define_method_proc(struct VM *vm, mrb_class *cls, mrb_sym sym_id, mrb_proc *rproc);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
+