Sha256: d6ca11e9e31b1f084391bbfa937aa4b3512d9498c310f014b148ec0dfc93aa44
Contents?: true
Size: 327 Bytes
Versions: 1
Compression:
Stored size: 327 Bytes
Contents
#include<stdio.h> #include<ruby.h> VALUE hello(void) { printf("Hello, world\n"); return Qnil; } // https://github.com/ruby/ruby/blob/trunk/README.EXT#L682 void Init_rust_example(void) { VALUE rust_example = rb_define_module("RustExample"); rb_define_singleton_method(rust_example, "hello", hello, 0); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rust_example-0.0.2 | ext/rust_example/rust_example.c |