mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
This is a copy/adaptation of the python example (#13105)
This commit is contained in:
committed by
GitHub
parent
7c2f3e4530
commit
357ac0bb5a
7
examples/call_v_from_ruby/README.md
Normal file
7
examples/call_v_from_ruby/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
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 .
|
||||
Reference in New Issue
Block a user