felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=3a33ef45bd90cc17b484cedddc8b2df3736e015a
commit 3a33ef45bd90cc17b484cedddc8b2df3736e015a Author: Felipe Magno de Almeida <[email protected]> Date: Sun Jan 17 14:07:17 2016 -0200 eina-cxx: Fix instantiating eina domain without eina_init Added eina_init to eina_domain initialization as to force eina_init to happen before initialization of global eina domains. This fixes eolian_js domain in src/bin/eolian_js. --- src/bindings/eina_cxx/eina_log.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bindings/eina_cxx/eina_log.hh b/src/bindings/eina_cxx/eina_log.hh index 77e30e5..5ec0744 100644 --- a/src/bindings/eina_cxx/eina_log.hh +++ b/src/bindings/eina_cxx/eina_log.hh @@ -148,7 +148,7 @@ struct log_domain : _domain_base<log_domain> * @param color Color of the domain name. */ log_domain(char const* name, char const* color = "black") - : _domain( ::eina_log_domain_register(name, color)) + : _domain( (::eina_init(), ::eina_log_domain_register(name, color)) ) { } @@ -158,6 +158,7 @@ struct log_domain : _domain_base<log_domain> ~log_domain() { ::eina_log_domain_unregister(_domain); + ::eina_shutdown(); } int domain_raw() const { return _domain; } private: --
