summaryrefslogtreecommitdiff
path: root/src/lib/eina_error.c
diff options
context:
space:
mode:
authorJorge Luis Zapata Muga <jorgeluis.zapata@gmail.com>2008-08-23 19:50:21 +0000
committerJorge Luis Zapata Muga <jorgeluis.zapata@gmail.com>2008-08-23 19:50:21 +0000
commit4e385feaa1839015dd88395696d16bdfe892654b (patch)
treec15b926a25b5d839fd75e87f0755a1036e9e1f65 /src/lib/eina_error.c
parent2a9a396f589ada465ca5b7d3314aeddc81410cb0 (diff)
downloadeina-4e385feaa1839015dd88395696d16bdfe892654b.tar.gz
Place pre-conditions where they belong
Remove unused rectangle functions SVN revision: 35634
Diffstat (limited to 'src/lib/eina_error.c')
-rw-r--r--src/lib/eina_error.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/eina_error.c b/src/lib/eina_error.c
index 74ef382..705f273 100644
--- a/src/lib/eina_error.c
+++ b/src/lib/eina_error.c
@@ -144,9 +144,11 @@ EAPI void eina_error_print(Eina_Error_Level level, const char *file,
{
va_list args;
+ if (level > _error_level)
+ return;
+
va_start(args, fmt);
- if (level <= _error_level)
- _print_cb(level, file, fnc, line, fmt, _print_cb_data, args);
+ _print_cb(level, file, fnc, line, fmt, _print_cb_data, args);
va_end(args);
}
/**