Evas filters: Disable debug code path

This commit is contained in:
Jean-Philippe Andre 2015-07-28 11:27:08 +09:00
parent 284cd2a530
commit f9c7d25b08
1 changed files with 3 additions and 3 deletions

View File

@ -2208,10 +2208,10 @@ static inline void
_lua_import_path_get(char *path, size_t len, const char *name) _lua_import_path_get(char *path, size_t len, const char *name)
{ {
const char *pfx = _evas_module_datadir_get(); const char *pfx = _evas_module_datadir_get();
struct stat st;
size_t r; size_t r;
//#ifdef FILTERS_DEBUG #ifdef FILTERS_DEBUG
struct stat st;
// This is a hack to fetch the most recent file from source // This is a hack to fetch the most recent file from source
if (stat(path, &st) == -1) if (stat(path, &st) == -1)
{ {
@ -2231,7 +2231,7 @@ _lua_import_path_get(char *path, size_t len, const char *name)
free(src); free(src);
if (!stat(path, &st)) return; if (!stat(path, &st)) return;
} }
//#endif #endif
r = snprintf(path, len - 1, "%s/filters/lua/%s.lua", pfx ? pfx : ".", name); r = snprintf(path, len - 1, "%s/filters/lua/%s.lua", pfx ? pfx : ".", name);
if (r >= len) path[len - 1] = '\0'; if (r >= len) path[len - 1] = '\0';