diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-02-08 11:33:26 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-02-08 11:33:26 +0000 |
commit | 2bd6db62f2b8b8a1286b3ecd72b8dd477eab0bbd (patch) | |
tree | 8e4917b6cda246b55e97110498cb83b45511dd1b /src/IO | |
parent | cf5a38619384c981d55bb91e2416e0ba004d034f (diff) |
Defaults are overloaded
git-svn-id: http://svn.cactuscode.org/flesh/trunk@215 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/IO')
-rw-r--r-- | src/IO/Overload.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/IO/Overload.c b/src/IO/Overload.c index f22a8583..b908fe5e 100644 --- a/src/IO/Overload.c +++ b/src/IO/Overload.c @@ -21,8 +21,14 @@ static char *rcsid="$Header$"; /* Define the prototypes for the dummy functions. */ #define OVERLOADABLE(name) OVERLOADABLE_DUMMYPROTOTYPE(name) +/* There are default versions for all overloadable IO functions */ +#define CCTK_DummyOutputGH CactusDefaultOutputGH +#define CCTK_DummyOutputVarAs CactusDefaultOutputVarAs + #include "IOOverloadables.h" +#undef CCTK_DummyOutputGH +#undef CCTK_DummyOutputVarAs #undef OVERLOADABLE(name) /* Create the overloadable function variables and the @@ -53,23 +59,23 @@ int SetupIOFunctions(void) #define OVERLOADABLE(name) OVERLOADABLE_CHECK(name) - /* Deal seperately with the SetupGH routine */ -#define CCTK_DummySetupGH CactusDefaultSetupGH + /* There are default versions for all overloadable IO functions */ +#define CCTK_DummyOutputGH CactusDefaultOutputGH +#define CCTK_DummyOutputVarAs CactusDefaultOutputVarAs #include "IOOverloadables.h" /* Reset the #define to prevent complications. */ -#undef CCTK_DummySetupGH +#undef CCTK_DummyOutputGH +#undef CCTK_DummyOutputVarAs #undef OVERLOADABLE(name) return 0; } -/* Create the dummy functions. */ +/* Don't need dummy functions since we have defaults. #define OVERLOADABLE(name) OVERLOADABLE_DUMMY(name) - #include "IOOverloadables.h" - #undef OVERLOADABLE(name) - +*/ |