summaryrefslogtreecommitdiff
path: root/src/main/GHExtensions.c
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-11-12 10:44:41 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-11-12 10:44:41 +0000
commitaddff6330beeb9a1c7e30a29b2be1a9b194882f2 (patch)
treea8602f4a4a45838268b36fb3213a657171b0ccb1 /src/main/GHExtensions.c
parent29724e44dd248711b389aecbbdd508e550de5280 (diff)
Print out registered extensions and handles in debug mode
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1153 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/GHExtensions.c')
-rw-r--r--src/main/GHExtensions.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/GHExtensions.c b/src/main/GHExtensions.c
index 226d9e22..c61679eb 100644
--- a/src/main/GHExtensions.c
+++ b/src/main/GHExtensions.c
@@ -7,6 +7,8 @@
@enddesc
@@*/
+/*#define DEBUG*/
+
#include <stdio.h>
#include <stdlib.h>
@@ -96,6 +98,10 @@ int CCTK_RegisterGHExtension(const char *name)
/* Get a handle for it. */
handle = Util_NewHandle(&GHExtensions, name, new_extension);
+#ifdef DEBUG
+ printf("CCTK_RegisterGHExtension: Extension %s gets handle %d\n",name,handle);
+#endif
+
/* Initialise the extension structure. */
new_extension->InitGH = NULL;
new_extension->SetupGH = NULL;