On Fri, 26 Feb 2010 21:23:19 -0300 Gustavo Sverzut Barbieri <[email protected]> said:
> On Fri, Feb 26, 2010 at 3:02 AM, Carsten Haitzler <[email protected]> > wrote: > > On Thu, 25 Feb 2010 15:01:02 -0300 Gustavo Sverzut Barbieri > > <[email protected]> said: > > > > because eina_log doesnt do what i want. i'm busy tracking down issues not > > trying to get a gold star for using eina (which doesnt do what i want - i > > DONT want any code there if its turned off - no fn call - nothing, but i > > also dont ant to disable logging in general). eina ALWAYS adds logging code > > - ALWAYS. i dont want that. (either its a eina_log_print or a do while with > > an if in it to call the same fn). > > you can set maximum log level and define your func to be of that > level. in that case there will be code, but it will fall into 2 > constant comparison and compilers will just remove the code into the > binary, like: > > if (5 > 4) { debug ... } > depends on optimisation level. also this would require i would have sat and hunted for such features in eina_log before doing this and that would presume it has what i was after - which it does not - i had more important things to do like actually find bugs/problems. also i dont want eina's log formatting with color, and the output doesnt align columns for easy reading (notice my printf % 30s etc.) so of course i'm not going to look at it as it's already "not what i want" :). in the end this will be turned on via compiling anyway - and disabled via compiling again - so the end result will be the same. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
