summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrank Celler <[email protected]>2012-06-02 11:54:14 +0200
committerFrank Celler <[email protected]>2012-06-02 11:54:14 +0200
commitaeffe3f712ac9622f8e8a451bfb2d6100f89b413 (patch)
treee2f81a9bad8f983df6183d959e1fe46235e9b5e2
parent92f192521865137c7e457b4a54c5df4ad2fbb049 (diff)
downloadmruby-aeffe3f712ac9622f8e8a451bfb2d6100f89b413.tar.gz
mruby-aeffe3f712ac9622f8e8a451bfb2d6100f89b413.zip
fixed prototype: g++ will complain about definition not being a prototype, should work with GCC and VC as well
-rw-r--r--include/mruby.h8
-rw-r--r--include/mruby/variable.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 3bbc6e6cc..777683ccd 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -147,7 +147,7 @@ mrb_obj_value(void *p)
}
static inline mrb_value
-mrb_false_value()
+mrb_false_value(void)
{
mrb_value v;
@@ -157,7 +157,7 @@ mrb_false_value()
}
static inline mrb_value
-mrb_nil_value()
+mrb_nil_value(void)
{
mrb_value v;
@@ -167,7 +167,7 @@ mrb_nil_value()
}
static inline mrb_value
-mrb_true_value()
+mrb_true_value(void)
{
mrb_value v;
@@ -177,7 +177,7 @@ mrb_true_value()
}
static inline mrb_value
-mrb_undef_value()
+mrb_undef_value(void)
{
mrb_value v;
diff --git a/include/mruby/variable.h b/include/mruby/variable.h
index 880d6217e..400dd50b0 100644
--- a/include/mruby/variable.h
+++ b/include/mruby/variable.h
@@ -14,8 +14,8 @@ extern "C" {
typedef struct global_variable {
int counter;
mrb_value *data;
- mrb_value (*getter)();
- void (*setter)();
+ mrb_value (*getter)(void);
+ void (*setter)(void);
//void (*marker)();
//int block_trace;
//struct trace_var *trace;