summaryrefslogtreecommitdiff
path: root/src/include/cctk_Groups.h
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-09-26 00:21:00 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-09-26 00:21:00 +0000
commita1492b067055e73d5b61dfe45c3cd4200bee64a2 (patch)
treef0677049f29bd0d18f50337523989fc8a1c563ac /src/include/cctk_Groups.h
parent06d94fb1dae1bedc506b432ccb1157d6aaa874d8 (diff)
Introduce macros CCTK_DECLARE and CCTK_DECLARE_INIT which declare or
declare and initialise local variables. They also add the necessary magic to prevent compiler warnings about unused variables. If the compiler supports __attribute__((unused)), then use this. Otherwise, use the existing fallback of taking the variable's address. In Fortran, use the variable's kind as fallback. Use these macros in autogenerated code and in "cctk.h". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4146 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Groups.h')
-rw-r--r--src/include/cctk_Groups.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/cctk_Groups.h b/src/include/cctk_Groups.h
index 9b44008c..c82f48aa 100644
--- a/src/include/cctk_Groups.h
+++ b/src/include/cctk_Groups.h
@@ -92,7 +92,11 @@ const char *CCTK_VarTypeName(int vartype);
int CCTK_VarTypeSize(int vtype);
+int CCTKi_GroupLength(const char *fullgroupname);
+int CCTKi_GroupLengthI(int group);
+
const int * CCTKi_GroupLengthAsPointer(const char *fullgroupname);
+const int * CCTKi_GroupLengthAsPointerI(int group);
/* traverse a string of group and/or variable names */
int CCTK_TraverseString (const char *parsestring,