diff options
| author | Ryan Scott <[email protected]> | 2013-05-17 08:02:24 +1000 |
|---|---|---|
| committer | Ryan Scott <[email protected]> | 2013-05-17 08:02:24 +1000 |
| commit | 40d63f7740e4b020a2126ddb386760c6fd51c999 (patch) | |
| tree | c55420fb15a817eb84c3c21940e550f3403da287 /include | |
| parent | da6b61db796a27c7e2784247e94293d86ac7563c (diff) | |
| download | mruby-40d63f7740e4b020a2126ddb386760c6fd51c999.tar.gz mruby-40d63f7740e4b020a2126ddb386760c6fd51c999.zip | |
Changed the each_object callback so that a pointer is passed for the object, instead of the struct.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/gc.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/mruby/gc.h b/include/mruby/gc.h index 552321be2..0c19275ba 100644 --- a/include/mruby/gc.h +++ b/include/mruby/gc.h @@ -1,5 +1,5 @@ /* -** gc.c - garbage collector for mruby +** gc.h - garbage collector for mruby ** ** See Copyright Notice in mruby.h */ @@ -7,18 +7,10 @@ #ifndef MRUBY_GC_H #define MRUBY_GC_H -#if defined(__cplusplus) -extern "C" { -#endif - #include "mruby.h" #include "mruby/value.h" -typedef int each_object_callback(mrb_state *mrb, struct RBasic obj, void *data); +typedef int each_object_callback(mrb_state *mrb, struct RBasic* obj, void *data); void mrb_objspace_each_objects(mrb_state *mrb, each_object_callback* callback, void *data); -#if defined(__cplusplus) -} /* extern "C" { */ -#endif - #endif /* MRUBY_GC_H */ |
