diff options
| author | realtradam <[email protected]> | 2022-01-09 23:54:24 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-01-09 23:54:24 -0500 |
| commit | 1f3c20a0ceb36758bf4f4b109594b7cad877560e (patch) | |
| tree | f8b90d123de06747662c1076a5e93a57ee9a4283 | |
| parent | 633f774b0c554e6c916ff3d3a73886e7285322a1 (diff) | |
| download | sample-mruby-gem-1f3c20a0ceb36758bf4f4b109594b7cad877560e.tar.gz sample-mruby-gem-1f3c20a0ceb36758bf4f4b109594b7cad877560e.zip | |
.
| -rw-r--r-- | mrblib/example.rb | 1 | ||||
| -rw-r--r-- | src/example.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/mrblib/example.rb b/mrblib/example.rb index 60f14e6..8460b32 100644 --- a/mrblib/example.rb +++ b/mrblib/example.rb @@ -3,4 +3,3 @@ class Test puts "yes it does" end end -CRubyExtension.c_method diff --git a/src/example.c b/src/example.c index 140d032..e6d76c7 100644 --- a/src/example.c +++ b/src/example.c @@ -63,7 +63,7 @@ void UpdateDrawFrame(void) void mrb_my_silly_extension_gem_init(mrb_state* mrb) { - struct RClass *class_cextension = mrb_define_module(mrb, "CRubyExtension"); + struct RClass *class_cextension = mrb_define_module(mrb, "Ye"); mrb_define_class_method(mrb, class_cextension, "c_method", mrb_c_method, MRB_ARGS_NONE()); } |
