From ac84e7aa8ab5494663792ba974d84ee9f0e1fe4e Mon Sep 17 00:00:00 2001 From: allen Date: Thu, 8 Jul 1999 12:28:44 +0000 Subject: 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 --- src/include/OverloadMacros.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/OverloadMacros.h') 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; \ } \ \ -- cgit v1.2.3