Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added shell of implementation and tests for C structs in Ruby. Decide…

…d to just refer to the example on the primary resource.
  • Loading branch information...
commit 714c613e7973833ba6720e0c3f5f58d6b6dce543 1 parent 6caff15
Matt Todd authored
2  samples/intermediate/intermediate.c
View
@@ -1,6 +1,7 @@
#include "ruby.h"
#include "src/blocks_sample.c"
+#include "src/c_structs_in_ruby_sample.c"
///////////////////////////////////////////////////////////////////////////////
@@ -10,4 +11,5 @@ void Init_intermediate();
void Init_intermediate() {
Intermediate = rb_define_module("Intermediate");
Init_blocks_sample();
+ Init_c_structs_in_ruby_sample();
}
6 samples/intermediate/src/c_structs_in_ruby_sample.c
View
@@ -0,0 +1,6 @@
+#include "ruby.h"
+
+void Init_c_structs_in_ruby_sample() {
+ // see the MP3Info and CDPlayer examples found at
+ // http://rubycentral.com/pickaxe/ext_ruby.html
+}
4 test/intermediate/c_structs_in_ruby_sample_test.rb
View
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+# class CStructsInRubySampleTest < Test::Unit::TestCase
+# end
Please sign in to comment.
Something went wrong with that request. Please try again.