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

Jonathan Thornburg jthorn at aei.mpg.de
Thu Jun 23 08:32:57 CDT 2005


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);

ciao,

-- 
-- Jonathan Thornburg <jthorn at aei.mpg.de>
    Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
    Golm, Germany, "Old Europe"     http://www.aei.mpg.de/~jthorn/home.html
    "Washing one's hands of the conflict between the powerful and the
     powerless means to side with the powerful, not to be neutral."
                                       -- quote by Freire / poster by Oxfam




More information about the Developers mailing list