summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authordearblue <[email protected]>2020-07-22 00:18:28 +0900
committerdearblue <[email protected]>2020-07-24 11:48:09 +0900
commitccd5f203bf1e7c54cb08fc9eecfe2772277b5a58 (patch)
tree5c7c761bf2d01788e8be38d03c86633ec296c8d0 /include
parent5c2b11d21581cf472929b21f28f1a388a16f0865 (diff)
downloadmruby-ccd5f203bf1e7c54cb08fc9eecfe2772277b5a58.tar.gz
mruby-ccd5f203bf1e7c54cb08fc9eecfe2772277b5a58.zip
Improve prototype for `mrb_objspace_page_slot_size()`; ref #5032
If it qualify a return type that is not a pointer with `const`, the compiler ignores it.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/gc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/gc.h b/include/mruby/gc.h
index 3b2ded9d4..1beffba2a 100644
--- a/include/mruby/gc.h
+++ b/include/mruby/gc.h
@@ -21,7 +21,7 @@ struct mrb_state;
#define MRB_EACH_OBJ_BREAK 1
typedef int (mrb_each_object_callback)(struct mrb_state *mrb, struct RBasic *obj, void *data);
void mrb_objspace_each_objects(struct mrb_state *mrb, mrb_each_object_callback *callback, void *data);
-const mrb_int mrb_objspace_page_slot_size();
+mrb_int mrb_objspace_page_slot_size(void);
MRB_API void mrb_free_context(struct mrb_state *mrb, struct mrb_context *c);
#ifndef MRB_GC_ARENA_SIZE