summaryrefslogtreecommitdiff
path: root/src/include/OverloadMacros.h
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-08 12:28:44 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-08 12:28:44 +0000
commitac84e7aa8ab5494663792ba974d84ee9f0e1fe4e (patch)
tree986c6d449c0879782cdbb798934ff07f7ab1779d /src/include/OverloadMacros.h
parent05b308a5cfa4fb9d69d0c3619603e88375a06518 (diff)
New names for many of the Group functions which are used by infrastructure
thorns and the flesh. The names should be more consistent now. You might want to hold of from this update for a little while until all the thorn changes are in. git-svn-id: http://svn.cactuscode.org/flesh/trunk@688 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/OverloadMacros.h')
-rw-r--r--src/include/OverloadMacros.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/OverloadMacros.h b/src/include/OverloadMacros.h
index dd149197..dd09bd2c 100644
--- a/src/include/OverloadMacros.h
+++ b/src/include/OverloadMacros.h
@@ -37,9 +37,12 @@ int CCTK_Overload##name(RETURN_TYPE (*func)(ARGUMENTS)) \
} \
else \
{ \
- fprintf(stderr, \
+ char *message = malloc( (200+strlen(#name))*sizeof(char) ); \
+ sprintf(message, \
"Warning: Attempted to overload function %s twice\n",\
#name); \
+ CCTK_Warn(1,__LINE__,__FILE__,"Cactus",message); \
+ free(message); \
return_code = 0; \
} \
\