eina_log optimization: allow to compile out some debug messages.
authorbarbieri <barbieri>
Fri, 4 Sep 2009 21:28:50 +0000 (21:28 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 4 Sep 2009 21:28:50 +0000 (21:28 +0000)
commit6eec187f8adfa765a9a8c5f16d9899be552381ad
treefe27185e54ff1e4d2bef678c69b1213c2d60c5ce
parenta06dfd87d5392049217af044b6237b83acda4a9e
eina_log optimization: allow to compile out some debug messages.

Users may opt to set EINA_LOG_LEVEL_MAXIMUM to some integer and macro
will then evaluate to check for that value before actually call
eina_log_print() macro. By using optimizations compilers will
effectivelly compile out the code if it is never reached, thus saving
the check and function call in possible critical paths.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42269 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
configure.ac
src/include/eina_log.h