On Mon, Mar 10, 2014 at 5:02 PM, Felipe Magno de Almeida
<[email protected]> wrote:
> Hello Gustavo,
[snip]
Hello Gustavo,
> What I *may* do is: (without impacting performance)
>
> EINA_CXX_DOM_LOG_CRIT(domain) << "hello world " << 0.3456;
>
> But I'm not 100% sure.
Yeah, I think I can do it using a trick with some for statements:
#define EINA_CXX_DOM_LOG(DOMAIN, LEVEL) \
for( bool stop = false ; !stop ; stop = true ) \
for(std::stringstream stream; !stop &&
::eina_log_domain_level_check((DOMAIN), LEVEL); \
::efl::eina::_log(std::move(stream), (DOMAIN), LEVEL \
, __FILE__, __FUNCTION__, __LINE__), stop = true) \
stream
This works:
EINA_CXX_DOM_LOG_CRIT(domain) << "foo 0x" << std::hex << 10;
[snip]
Is this better?
>> --
>> Gustavo Sverzut Barbieri
>> --------------------------------------
>> Mobile: +55 (19) 99225-2202
>> Contact: http://www.gustavobarbieri.com.br/contact
>
> Regards,
> --
> Felipe Magno de Almeida
Regards,
--
Felipe Magno de Almeida
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel