2013å¹´3æ12æ¥ç«ææ¥ mrubyã§ã«ã¹ã¿ã ã¢ãã±ã¼ã¿ãæå® æå»: 17:10 mrubyã§æ¨æºã®malloc/freeãããªããã¢ããªå´ã§ç¨æããã¡ã¢ãªã¢ãã±ã¼ã¿ãæå®ãã¦ã¿ããmrubyã®åæåãmrb_open()ãããªãã¦mrb_open_allocf()ã«ãã¦ãå¼æ°ã«ã¢ãã±ã¼ã¿ã®é¢æ°ã¨ãã®é¢æ°ã«æ¸¡ãã¦ã¼ã¶ãã¼ã¿ãä¸ãã¦å¼ã³åºããã¨ã§ãã¢ããªå´ã§ã¡ã¢ãªç®¡çãã§ããã ã¢ãã±ã¼ã¿ã¯ typedef void* (*mrb_allocf) (struct mrb_state *mrb, void*, size_t, void *ud); ã¨ããåã®é¢æ°ã§ããµã¤ãºãï¼ãªã解æ¾ãï¼ãã大ããå ´åãã¤ã³ã¿ãNULLãªãæ°è¦ç¢ºä¿ãNULLãããªããã°ä»¥å確ä¿ãã¦ããé åããªãµã¤ãºããçµæã®ãã¤ã³ã¿ãè¿ããã¨ã§ãã¢ããªå´ã§ä»»æã®ã¡ã¢ãªç®¡çãã§ãããããã©ã«ãã ã¨ä»¥ä¸ã®æ§ãªã¢ãã±ã¼ã¿ã«ãªã£
{{#tags}}- {{label}}
{{/tags}}