{"title":"M5\u3067mruby/c (5)","blog_url":"https://katsuyoshi.hatenadiary.com/","height":"190","version":"1.0","author_name":"gutskun","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatsuyoshi.hatenadiary.com%2Fentry%2F2023%2F03%2F22%2F001229\" title=\"M5\u3067mruby/c (5) - \u3072\u3068\u3057\u308c\u305a\u3072\u3063\u305d\u308a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u3072\u3068\u3057\u308c\u305a\u3072\u3063\u305d\u308a","type":"rich","provider_name":"Hatena Blog","description":"\u30af\u30e9\u30b9\u306f\u4f5c\u308c\u305f\u3093\u3060\u3051\u3069\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3002 https://github.com/mrubyc/mrubyc/blob/master/src/class.c#L131-L155 \u30e1\u30bd\u30c3\u30c9\u306e\u5b9a\u7fa9\u306f\u3053\u3061\u3089\u3067\u51e6\u7406\u3055\u308c\u3066\u3044\u308b\u3002 void mrbc_define_method(struct VM *vm, mrbc_class *cls, const char *name, mrbc_func_t cfunc) \u524d\u56de\u6700\u521d\u306e\u5f15\u6570\u30920\u306b\u3057\u3066\u3044\u305f\u304cVM\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u30fc\u3092\u6e21\u3059\u69d8\u3060\u3002 \u95a2\u6570\u30dd\u30a4\u30f3\u30bf\u30fc\u306f mrbc_func_t \u3068\u3044\u3046\u578b\u306b\u306a\u308b\u3002 typedef void (*mrbc_func_t)(s\u2026","url":"https://katsuyoshi.hatenadiary.com/entry/2023/03/22/001229","categories":["ruby","IoT"],"published":"2023-03-22 00:12:29","image_url":null,"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/gutskun/"}