v/examples/call_v_from_ruby
2024-01-12 15:59:09 +02:00
..
README.md
test.rb examples: fix "call v from ruby" example for Windows and Mac (#20487) 2024-01-12 15:59:09 +02:00
test.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00

A simple example to show how to call a function written in v from ruby

Step 1: Compile the v code to a shared library using v -d no_backtrace -shared test.v

Step 2: Run the ruby file using ruby test.rb

Note: you do not need -d no_backtrace if you use gcc or clang .