[Developers] cctk_WarnLevel.h and WarnLevel.c: register the callbacks and call them

Tom Goodale goodale at cct.lsu.edu
Thu Jun 23 08:54:58 CDT 2005


On Thu, 23 Jun 2005, Jonathan Thornburg wrote:

> On Wed, 22 Jun 2005, Jian Tao wrote:
>
>> Two function types were declared.
>> 
>> typedef void (*warnfunc)(int level,
>>                         int line,
>>                         const char *file,
>>                         const char *thorn,
>>                         const char *message,
>>                         void *data);
>> 
>> typedef void (*infofunc)(const char *thorn,
>>                         const char *message,
>>                            void *data);
>
> Shouldn't those be in the CCTK_ namespace, i.e.
>  typedef void (*CCTK_warnfunc)(int level,
>                                int line,
>                                const char *file,
>                                const char *thorn,
>                                const char *message,
>                                void *data);
>
>  typedef void (*CCTK_infofunc)(const char *thorn,
>                                const char *message,
>                                void *data);
>

Yes, although as these are types rather than functions they should be 
cctk_ not CCTK_ .

Tom




More information about the Developers mailing list