diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-11-21 23:41:53 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-11-21 23:41:53 +0000 |
commit | 3455d6f2e5083a3a8a163d8a7ed385e46d5db91d (patch) | |
tree | 6eefa0436bbc3028a01c3f1632d49fb73257cc00 /src/include/MainOverloadables.h | |
parent | daa14c277b9c0176e4717b068071673cb9ffc18e (diff) |
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
Diffstat (limited to 'src/include/MainOverloadables.h')
-rw-r--r-- | src/include/MainOverloadables.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 |