diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-12-09 22:04:13 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-12-09 22:04:13 +0000 |
commit | 4a1db9c3ea04f33adb2f0898f9eed3a1e986c473 (patch) | |
tree | 69e5fc26b7ccf7373b6612e53fb834fd64846b68 /src/include/IOOverloadables.h | |
parent | 407367bf997d32ac42ef8529429606da9ef183f7 (diff) |
Define USE_ARGUMENTS macro which expands to something which use the arguments
of overloaded functions.
This gets rid of nasty compiler warnings about unused function arguments for
dummy overloadables.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2488 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/IOOverloadables.h')
-rw-r--r-- | src/include/IOOverloadables.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/IOOverloadables.h b/src/include/IOOverloadables.h index cbdbcfea..2b0a50de 100644 --- a/src/include/IOOverloadables.h +++ b/src/include/IOOverloadables.h @@ -29,12 +29,17 @@ #undef ARGUMENTS #endif +#ifdef USE_ARGUMENTS +#undef USE_ARGUMENTS +#endif + #ifdef RETURN_TYPE #undef RETURN_TYPE #endif -#define RETURN_TYPE int #define ARGUMENTS const cGH *GH +#define USE_ARGUMENTS GH = GH; +#define RETURN_TYPE int OVERLOADABLE(OutputGH) #undef ARGUMENTS @@ -42,9 +47,12 @@ OVERLOADABLE(OutputGH) const char *var, \ const char *method, \ const char *alias +#undef USE_ARGUMENTS +#define USE_ARGUMENTS GH = GH; var = var; method = method; alias = alias; OVERLOADABLE(OutputVarAsByMethod) #undef ARGUMENTS +#undef USE_ARGUMENTS #undef RETURN_TYPE #undef OVERLOADABLE_CALL |