X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FConfig.ih;h=6c6d5ac7f4a588881bcfb5d4036846d2d76f3dbe;hb=445c71d8d242f4ce3d23d8db8d1faf909943cfec;hp=10b9e4a349677b0a656d7daae872b158b00c4b0a;hpb=9ff976ea47b175355a1f7ef4d05f14edb98a82e4;p=senf.git diff --git a/Utils/Logger/Config.ih b/Utils/Logger/Config.ih index 10b9e4a..6c6d5ac 100644 --- a/Utils/Logger/Config.ih +++ b/Utils/Logger/Config.ih @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -41,24 +41,29 @@ namespace senf { namespace log { namespace detail { + /// Internal: Compile time configuration for given \a Stream and \a Area template struct Config { typedef typename Config::compileLimit compileLimit; }; +# ifndef DOXYGEN + template struct Config { typedef typename Stream::compileLimit compileLimit; }; +# endif + }}} -#define SENF_LOG_SEQ_TO_NAME_(s,data,elem) ::elem +#define SENF_LOG_SEQ_TO_NAME_(s,state,elem) state::elem #define SENF_LOG_SEQ_TO_NAME(seq) \ - BOOST_PP_SEQ_FOR_EACH(SENF_LOG_SEQ_TO_NAME_, none, seq) + BOOST_PP_SEQ_FOLD_LEFT(SENF_LOG_SEQ_TO_NAME_, , seq) #define SENF_LOG_PREDECL_(s, state, elem) \ namespace elem { state } @@ -86,11 +91,10 @@ namespace detail { #ifdef SENF_LOG_CONF -# define SLC_elt(s, state, elt) \ +# define SLC_elt(r, data, elt) \ SENF_LOG_CONF_DEFINE elt - // Need to use fold here to not exhaust the maximum FOR nesting depth ... - BOOST_PP_SEQ_FOLD_LEFT(SLC_elt, none, SENF_LOG_CONF) + BOOST_PP_SEQ_FOR_EACH(SLC_elt, none, SENF_LOG_CONF) # undef SLC_elt