diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-03-16 15:50:44 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-03-16 17:02:23 +0100 |
commit | 80fe015a86c90db2bcbfcd382eb24c8b7069fa3a (patch) | |
tree | bfe90c47d76ac21ee493459f0fc4151da804fa83 /comphelper | |
parent | d32cf8d820be839c7303e3c5962c17f64cac2812 (diff) |
Add COMPHELPER_SERVICEDECL_EXPORTS* back in, after libmerge changes
Did I mention I hate boilerplate copied all over the place? ;)
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/inc/comphelper/servicedecl.hxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/comphelper/inc/comphelper/servicedecl.hxx b/comphelper/inc/comphelper/servicedecl.hxx index c5ab4b79f5f7..31956a4475f8 100644 --- a/comphelper/inc/comphelper/servicedecl.hxx +++ b/comphelper/inc/comphelper/servicedecl.hxx @@ -384,12 +384,12 @@ BOOST_PP_REPEAT_FROM_TO(1, COMPHELPER_SERVICEDECL_COMPONENT_HELPER_MAX_ARGS, Note the missing colons between the bracketed arguments. */ -#define COMPHELPER_SERVICEDECL_make_exports(varargs_ ) \ +#define COMPHELPER_SERVICEDECL_make_exports(compName, varargs_ ) \ extern "C" \ { \ - SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( sal_Char const* pImplName, \ - ::com::sun::star::lang::XMultiServiceFactory* pServiceManager, \ - ::com::sun::star::registry::XRegistryKey* pRegistryKey ) \ + SAL_DLLPUBLIC_EXPORT void* SAL_CALL compName##_component_getFactory( sal_Char const* pImplName, \ + ::com::sun::star::lang::XMultiServiceFactory* pServiceManager, \ + ::com::sun::star::registry::XRegistryKey* pRegistryKey ) \ { \ return component_getFactoryHelper( pImplName, pServiceManager, \ pRegistryKey, \ @@ -397,22 +397,22 @@ extern "C" \ } \ } -#define COMPHELPER_SERVICEDECL_EXPORTS1(comp0_) \ - COMPHELPER_SERVICEDECL_make_exports((comp0_)) -#define COMPHELPER_SERVICEDECL_EXPORTS2(comp0_,comp1_) \ - COMPHELPER_SERVICEDECL_make_exports((comp0_)(comp1_)) -#define COMPHELPER_SERVICEDECL_EXPORTS3(comp0_,comp1_,comp2_) \ - COMPHELPER_SERVICEDECL_make_exports((comp0_)(comp1_)(comp2_)) -#define COMPHELPER_SERVICEDECL_EXPORTS4(comp0_,comp1_,comp2_,comp3_) \ - COMPHELPER_SERVICEDECL_make_exports((comp0_)(comp1_)(comp2_)(comp3_)) -#define COMPHELPER_SERVICEDECL_EXPORTS5(comp0_,comp1_,comp2_,comp3_,comp4_) \ - COMPHELPER_SERVICEDECL_make_exports((comp0_)(comp1_)(comp2_)(comp3_)(comp4_)) -#define COMPHELPER_SERVICEDECL_EXPORTS6(comp0_,comp1_,comp2_,comp3_,comp4_,comp5_) \ - COMPHELPER_SERVICEDECL_make_exports((comp0_)(comp1_)(comp2_)(comp3_)(comp4_)(comp5_)) -#define COMPHELPER_SERVICEDECL_EXPORTS7(comp0_,comp1_,comp2_,comp3_,comp4_,comp5_,comp6_) \ - COMPHELPER_SERVICEDECL_make_exports((comp0_)(comp1_)(comp2_)(comp3_)(comp4_)(comp5_)(comp6_)) -#define COMPHELPER_SERVICEDECL_EXPORTS8(comp0_,comp1_,comp2_,comp3_,comp4_,comp5_,comp6_,comp7_) \ - COMPHELPER_SERVICEDECL_make_exports((comp0_)(comp1_)(comp2_)(comp3_)(comp4_)(comp5_)(comp6_)(comp7_)) +#define COMPHELPER_SERVICEDECL_EXPORTS1(compName,comp0_) \ + COMPHELPER_SERVICEDECL_make_exports(compName,(comp0_)) +#define COMPHELPER_SERVICEDECL_EXPORTS2(compName,comp0_,comp1_) \ + COMPHELPER_SERVICEDECL_make_exports(compName,(comp0_)(comp1_)) +#define COMPHELPER_SERVICEDECL_EXPORTS3(compName,comp0_,comp1_,comp2_) \ + COMPHELPER_SERVICEDECL_make_exports(compName,(comp0_)(comp1_)(comp2_)) +#define COMPHELPER_SERVICEDECL_EXPORTS4(compName,comp0_,comp1_,comp2_,comp3_) \ + COMPHELPER_SERVICEDECL_make_exports(compName,(comp0_)(comp1_)(comp2_)(comp3_)) +#define COMPHELPER_SERVICEDECL_EXPORTS5(compName,comp0_,comp1_,comp2_,comp3_,comp4_) \ + COMPHELPER_SERVICEDECL_make_exports(compName,(comp0_)(comp1_)(comp2_)(comp3_)(comp4_)) +#define COMPHELPER_SERVICEDECL_EXPORTS6(compName,comp0_,comp1_,comp2_,comp3_,comp4_,comp5_) \ + COMPHELPER_SERVICEDECL_make_exports(compName,(comp0_)(comp1_)(comp2_)(comp3_)(comp4_)(comp5_)) +#define COMPHELPER_SERVICEDECL_EXPORTS7(compName,comp0_,comp1_,comp2_,comp3_,comp4_,comp5_,comp6_) \ + COMPHELPER_SERVICEDECL_make_exports(compName,(comp0_)(comp1_)(comp2_)(comp3_)(comp4_)(comp5_)(comp6_)) +#define COMPHELPER_SERVICEDECL_EXPORTS8(compName,comp0_,comp1_,comp2_,comp3_,comp4_,comp5_,comp6_,comp7_) \ + COMPHELPER_SERVICEDECL_make_exports(compName,(comp0_)(comp1_)(comp2_)(comp3_)(comp4_)(comp5_)(comp6_)(comp7_)) #endif // ! defined(COMPHELPER_SERVICEDECL_HXX_INCLUDED) |