"sendKey", sendKey, ARGS_REQ(3)); FILE* fp = std::fopen("main.mrb", "r"); if(fp!=NULL){ int byte_code = mrb_generate_code( m_mrb, mrb_parse_file(m_mrb, fp, NULL)); fclose(fp); mrb_value return_value = mrb_run( m_mrb, mrb_proc_new(m_mrb, m_mrb->irep[byte_code]), mrb_top_self(m_mrb)); return_valueを確認 mrb_close(m_mrb);