summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bemodule.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-03-09 22:14:15 +0100
committerMatthias Braun <matze@braunis.de>2010-03-09 22:14:15 +0100
commitea75e9d38674b468f602a0699fb64b9c01254797 (patch)
tree07323333a923640640d5ab99266e2423ed697397 /ir/be/bemodule.h
parent6b5dba400342fe4b747ea0770b533e07b9a4c4e8 (diff)
make firm (mostly) -Wmissing-prototypes clean
[r27277]
Diffstat (limited to 'ir/be/bemodule.h')
-rw-r--r--ir/be/bemodule.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ir/be/bemodule.h b/ir/be/bemodule.h
index 95e6911..db84248 100644
--- a/ir/be/bemodule.h
+++ b/ir/be/bemodule.h
@@ -32,13 +32,17 @@
* Currently you have to add modules manually in the list in bemodule.c.
* However future extensions might allow them to be automatically discovered
* when they are marked with BE_REGISTER_MODULE_CONSTRUCTOR
+ *
+ * Add this before your constructor as it will declare the function
*/
-#define BE_REGISTER_MODULE_CONSTRUCTOR(func)
+#define BE_REGISTER_MODULE_CONSTRUCTOR(func) void func(void);
/**
* Mark a function as module destructor.
+ *
+ * Add this before your constructor as it will declare the function
*/
-#define BE_REGISTER_MODULE_DESTRUCTOR(func)
+#define BE_REGISTER_MODULE_DESTRUCTOR(func) void func(void);
/**
* Call all module constructors