diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-04-15 21:36:24 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-04-15 21:36:24 +0000 |
commit | 5f58f28a203e175fd30d9c89c79257a0bb113a54 (patch) | |
tree | f5b58f5e95da105bddf041e299758c80f19bf7db /src/include/cctk_Flesh.h | |
parent | 120dafcce29ba5f898c37081aa9125dc9b3010e3 (diff) |
New macro CCTK_FILEVERSION(some string) to get rid of warning about rcsid
being unused.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1540 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Flesh.h')
-rw-r--r-- | src/include/cctk_Flesh.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/cctk_Flesh.h b/src/include/cctk_Flesh.h index 82f744da..9eb56295 100644 --- a/src/include/cctk_Flesh.h +++ b/src/include/cctk_Flesh.h @@ -28,6 +28,15 @@ typedef struct /* cTimer *timer[3];*/ } tFleshConfig; +#ifdef __cplusplus + +#define CCTK_FILEVERSION(file) extern "C" const char *CCTKi_version_##file(void) { return rcsid; } + +#else + +#define CCTK_FILEVERSION(file) extern "C" const char *CCTKi_version_##file(void) { return rcsid; } + +#endif /* Function prototypes */ |