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.
* @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)) )
{
}
~log_domain()
{
::eina_log_domain_unregister(_domain);
+ ::eina_shutdown();
}
int domain_raw() const { return _domain; }
private: