Sha256: 858046c6397883310293b48823d5c94f35b44f253ac47a590b6f32c8d5d958db
Contents?: true
Size: 325 Bytes
Versions: 1
Compression:
Stored size: 325 Bytes
Contents
#include<stdio.h> #include<ruby.h> VALUE hello(void) { printf("Hello, world"); 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.1 | ext/rust_example/rust_example.c |