Skip to content

Commit 16be278

Browse files
udzuraCopilot
andcommitted
Enable mrubyedge-math for Math module support
- Initialize math module with mrubyedge_math::init_math() Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
1 parent 7a232b8 commit 16be278

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

combined.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ fn eval_ruby_script(text: &str) -> Option<Rc<RObject>> {
3333
};
3434

3535
let mut vm = mrubyedge::yamrb::vm::VM::open(&mut rite);
36+
mrubyedge_math::init_math(&mut vm);
3637

3738
// Execute the script and handle exceptions
3839
match vm.run() {

0 commit comments

Comments
 (0)