summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-06-01 15:10:05 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-06-01 15:10:05 +0000
commit686e23ae66cffcaa023c9203bb8c6b73106e7ee2 (patch)
treec98050d8077e08bb54548f69269b83eb384ce2dc /src
parent76ccd6359644a2530bdc416c09e3f7d8687e0c87 (diff)
New file for overloadable functions from main.
Added production of prototypes for CCTK_Overload* using new macro from Overload.h. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@539 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r--src/include/Comm.h7
-rw-r--r--src/include/Main.h42
2 files changed, 49 insertions, 0 deletions
diff --git a/src/include/Comm.h b/src/include/Comm.h
index 84075ce6..ebcf2b19 100644
--- a/src/include/Comm.h
+++ b/src/include/Comm.h
@@ -23,6 +23,13 @@ extern "C" {
#undef OVERLOADABLE
+/* Define the prototypes for the overloading functions. */
+#define OVERLOADABLE(name) OVERLOADABLE_OVERLOADPROTO(name)
+
+#include "CommOverloadables.h"
+
+#undef OVERLOADABLE
+
int CCTK_QueryGroupStorage(cGH *,const char *);
int CCTK_QueryGroupStorage_ByIndex(cGH *,int);
int *CCTK_ArrayGroupSize(cGH *,const char *,int);
diff --git a/src/include/Main.h b/src/include/Main.h
new file mode 100644
index 00000000..cc8e9913
--- /dev/null
+++ b/src/include/Main.h
@@ -0,0 +1,42 @@
+ /*@@
+ @header Main.h
+ @date Tue Jun 1 13:24:32 1999
+ @author Tom Goodale
+ @desc
+ Header defining the variables holding the overloaded main functions
+ @enddesc
+ @version $Header$
+ @@*/
+
+
+#ifndef _MAIN_H_
+#define _MAIN_H_
+
+#include "OverloadMacros.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+/* Define the prototypes for the functions. */
+#define OVERLOADABLE(name) OVERLOADABLE_PROTOTYPE(name)
+
+#include "MainOverloadables.h"
+
+#undef OVERLOADABLE
+
+/* Define the prototypes for the overloading functions. */
+#define OVERLOADABLE(name) OVERLOADABLE_OVERLOADPROTO(name)
+
+#include "MainOverloadables.h"
+
+#undef OVERLOADABLE
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+
+
+