From: g0dil Date: Wed, 4 Mar 2009 13:31:28 +0000 (+0000) Subject: Utils/Console: Add missing 'inline' specs to SENF_CONSOLE_REGISTER_ENUM X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=94812233f5b3936499cbdddb41bb5cc20f1707b8;p=senf.git Utils/Console: Add missing 'inline' specs to SENF_CONSOLE_REGISTER_ENUM git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1144 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Utils/Console/Traits.ih b/Utils/Console/Traits.ih index bac962a..40e55e5 100644 --- a/Utils/Console/Traits.ih +++ b/Utils/Console/Traits.ih @@ -59,7 +59,7 @@ namespace detail { ( BOOST_PP_STRINGIZE(e), static_cast(d e) ) # define SENF_CONSOLE_REGISTER_ENUM_(Prefix, Type, Values) \ - senf::console::detail::EnumTable & senf_console_enum_table(Prefix Type) \ + inline senf::console::detail::EnumTable & senf_console_enum_table(Prefix Type) \ { \ static senf::console::detail::EnumTable table; \ if (table.empty()) \ @@ -67,14 +67,14 @@ namespace detail { BOOST_PP_SEQ_FOR_EACH( SENF_CONSOLE_REGISTER_ENUM_ELT, Prefix, Values ); \ return table; \ } \ - void senf_console_parse_argument( \ + inline void senf_console_parse_argument( \ senf::console::ParseCommandInfo::TokensRange const & tokens, Prefix Type & out) \ { \ out = static_cast( \ senf::console::detail::parseEnum( \ senf_console_enum_table( Prefix Type() ), tokens) ); \ } \ - void senf_console_format_value(Prefix Type value, std::ostream & os) \ + inline void senf_console_format_value(Prefix Type value, std::ostream & os) \ { \ os << senf::console::detail::formatEnum( \ senf_console_enum_table( Prefix Type() ), static_cast(value) ); \