![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is a port of the mruby/c tutorial Chapter 03 to the mbed environment.
Embed:
(wiki syntax)
Show/hide line numbers
class.h
Go to the documentation of this file.
00001 /*! @file 00002 @brief 00003 00004 <pre> 00005 Copyright (C) 2015-2016 Kyushu Institute of Technology. 00006 Copyright (C) 2015-2016 Shimane IT Open-Innovation Center. 00007 00008 This file is distributed under BSD 3-Clause License. 00009 00010 00011 </pre> 00012 */ 00013 00014 #ifndef MRBC_SRC_CLASS_H_ 00015 #define MRBC_SRC_CLASS_H_ 00016 00017 #include <stdint.h> 00018 #include "vm.h" 00019 00020 #ifdef __cplusplus 00021 extern "C" { 00022 #endif 00023 00024 mrb_class *find_class_by_object(struct VM *vm, mrb_object *obj); 00025 mrb_proc *find_method(struct VM *vm, mrb_value recv, mrb_sym sym_id); 00026 00027 void mrbc_init_class(void); 00028 void mrbc_define_method(struct VM *vm, mrb_class *cls, const char *name, mrb_func_t func); 00029 void mrbc_define_method_proc(struct VM *vm, mrb_class *cls, mrb_sym sym_id, mrb_proc *rproc); 00030 00031 #ifdef __cplusplus 00032 } 00033 #endif 00034 #endif 00035
Generated on Tue Jul 12 2022 23:36:30 by
![doxygen](doxygen.png)