Logo
Explore Help
Sign In
mirrors/v
Watch 0
Star 0 Fork 0
mirror of https://github.com/vlang/v.git synced 2026-10-29 01:14:54 +08:00
Code Activity
Files
master
v/examples/call_v_from_ruby
T
History
Delyan Angelov a80bc23314 tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918)
2025-03-13 19:51:51 +02:00
..
README.md
examples: show how to call a simple v module from ruby (#19073) (#19073)
2023-08-07 07:07:00 +03:00
test.rb
examples: fix "call v from ruby" example for Windows and Mac (#20487)
2024-01-12 15:59:09 +02:00
test.v
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918)
2025-03-13 19:51:51 +02:00

README.md

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 .

View Git Blame Copy Permalink
Powered by Gitea Version: 28.2.0 Page: 288ms Template: 2ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API