diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-09-21 20:21:14 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-09-21 20:21:14 +0800 |
| commit | 80b7f45fd17bac6f3623c92eceda26f6fbf72a64 (patch) | |
| tree | 8c537ec8fe4ee360175508905bdc92d396353ed9 /mrbgems/g/clib_example/src/clib_example.c | |
| parent | 668b22899f5067a5eb1d86b9eab9b99f9fae85c0 (diff) | |
| download | mruby-80b7f45fd17bac6f3623c92eceda26f6fbf72a64.tar.gz mruby-80b7f45fd17bac6f3623c92eceda26f6fbf72a64.zip | |
Rename Gem Examples
Diffstat (limited to 'mrbgems/g/clib_example/src/clib_example.c')
| -rw-r--r-- | mrbgems/g/clib_example/src/clib_example.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/mrbgems/g/clib_example/src/clib_example.c b/mrbgems/g/clib_example/src/clib_example.c deleted file mode 100644 index 2ab8682b2..000000000 --- a/mrbgems/g/clib_example/src/clib_example.c +++ /dev/null @@ -1,17 +0,0 @@ -#include <mruby.h> -#include <stdio.h> - -static struct RClass *_class_clib; - -static mrb_value -mrb_clib_example(mrb_state *mrb, mrb_value self) -{ - puts("A C Extension"); - return self; -} - -void -mrb_clib_example_gem_init(mrb_state* mrb) { - _class_clib = mrb_define_module(mrb, "CLib"); - mrb_define_class_method(mrb, _class_clib, "clib_method", mrb_clib_example, ARGS_NONE()); -} |
