zekexiao 45bf416230
Some checks failed
ubuntu / Explore-Gitea-Actions (push) Failing after 4m51s
add more test
2025-12-09 18:15:14 +08:00
ci
2025-10-21 22:42:57 +08:00
2025-10-18 19:53:21 +08:00
2025-12-09 18:15:14 +08:00
2025-12-09 18:08:41 +08:00
2025-10-18 19:52:53 +08:00
2025-10-18 22:09:37 +08:00

mrubypp

mruby c++ header only library

Installation

  • install mruby
  • add to cmake project, link mrubypp or copy *.h to you projects
  • cmake -DMRUBYPP_BUILD_TEST=ON . build tests

Usage

  #include "mrubypp.h"

  mrubypp engine;
  engine.load(R"(
      def sort_and_get_first(a)
        a.sort!
        a[0]
      end
  )");

  std::vector<int> a{3, 1, 2};
  auto b = engine.call<int>("sort_and_get_first", a);
  assert(b == 1);
Description
No description provided
Readme 2.2 MiB
Languages
C++ 92.5%
CMake 7.5%