X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbemodule.h;h=db8424872e8062ad75f05e87eb3542e4c0c3f674;hb=ce6161a7e42a48f7422b7babcc64d8ace18e2687;hp=ce9d70a11bd71bd8b2b9a4d8b4ef5cef55530076;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/be/bemodule.h b/ir/be/bemodule.h index ce9d70a11..db8424872 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 @@ -52,7 +56,7 @@ void be_quit_modules(void); //--------------------------------------------------------------------------- -#include +#include "lc_opts.h" typedef struct be_module_list_entry_t be_module_list_entry_t;