summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object.c b/object.c
index 4811c9a0ab..29c98356a4 100644
--- a/object.c
+++ b/object.c
@@ -1312,11 +1312,11 @@ rb_class_s_alloc(VALUE klass)
* a.meth2 #=> "bye"
*/
-extern VALUE rb_mod_module_exec(int argc, VALUE *argv, VALUE mod);
-
static VALUE
rb_mod_initialize(VALUE module)
{
+ extern VALUE rb_mod_module_exec(int argc, VALUE *argv, VALUE mod);
+
if (rb_block_given_p()) {
rb_mod_module_exec(1, &module, module);
}