};
void
-_edje_lua_error(lua_State *L, int err_code)
+__edje_lua_error(const char *file, const char *fnc, int line, lua_State *L, int err_code)
{
char *err_type;
err_type = "unknown";
break;
}
- ERR("Lua %s error: %s", err_type, lua_tostring(L, -1));
+ eina_log_print
+ (_edje_default_log_dom, EINA_LOG_LEVEL_ERR, file, fnc, line,
+ "Lua %s error: %s", err_type, lua_tostring(L, -1));
// don't exit. this is BAD. lua script bugs will cause thngs like e to
// exit mysteriously endig your x session. bad!
// exit(-1);
void _edje_lua_group_fn_new(Edje *ed);
void _edje_lua_init();
void _edje_lua_shutdown();
-void _edje_lua_error(lua_State *L, int err_code);
+
+void __edje_lua_error(const char *file, const char *fnc, int line, lua_State *L, int err_code);
+#define _edje_lua_error(L, err_code) \
+ __edje_lua_error(__FILE__, __FUNCTION__, __LINE__, L, err_code)
int _edje_lua_script_only(Edje *ed);
void _edje_lua_script_only_init(Edje *ed);