From 3455d6f2e5083a3a8a163d8a7ed385e46d5db91d Mon Sep 17 00:00:00 2001 From: goodale Date: Tue, 21 Nov 2000 23:41:53 +0000 Subject: Making the overload macros more generic. Can now do #define OVERLOADABLE_CALL MyThorn #define OVERLOADABLE_PREFIX MyThornFunc #define OVERLOADABLE_DUMMY_PREFIX MyThornDummyFunc to get it to generate functions/function pointers of the form MyThornOverloadFoo MyThornFuncFoo and MyThornDummyFuncFoo In the flesh these are CCTK_, CCTK_, and CCTKi_Dummy respectively. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1898 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/include/MainOverloadables.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/include/MainOverloadables.h') diff --git a/src/include/MainOverloadables.h b/src/include/MainOverloadables.h index f658ab49..34ae5023 100644 --- a/src/include/MainOverloadables.h +++ b/src/include/MainOverloadables.h @@ -9,6 +9,23 @@ @version $Header$ @@*/ + +#ifdef OVERLOADABLE_CALL +#undef OVERLOADABLE_CALL +#endif + +#ifdef OVERLOABLE_PREFIX +#undef OVERLOADABLE_PREFIX +#endif + +#ifdef OVERLOABLE_DUMMY_PREFIX +#undef OVERLOADABLE_DUMMY_PREFIX +#endif + +#define OVERLOADABLE_CALL CCTK_ +#define OVERLOADABLE_PREFIX CCTK_ +#define OVERLOADABLE_DUMMY_PREFIX CCTKi_Dummy + #ifdef ARGUMENTS #undef ARGUMENTS #endif @@ -40,3 +57,7 @@ OVERLOADABLE(SetMainLoopIndex) #undef ARGUMENTS #undef RETURN_TYPE + +#undef OVERLOADABLE_CALL +#undef OVERLOADABLE_PREFIX +#undef OVERLOADABLE_DUMMY_PREFIX -- cgit v1.2.3