On Thu, Apr 8, 2010 at 5:33 PM, Christopher Michael
<cpmicha...@comcast.net> wrote:
> On 04/08/2010 09:30 PM, Gustavo Sverzut Barbieri wrote:
>>
>> On Thu, Apr 8, 2010 at 4:37 PM, Christopher Michael
>> <cpmicha...@comcast.net>  wrote:
>>>
>>> I noticed while looking through the code of the Modules Dialog, that we
>>> are using "assert" in some places there. I don't think this is such a
>>> good idea :( Do we really want the whole window manager terminating on
>>> the off chance that the modules dialog has a problem ?
>>
>> assert is not error handling, rather an assertion of an always valid
>> situation, that when is not respected it should crash with a nice way
>> to identify. That's why official deployment should compile with NDEBUG
>> and the assert is removed altogether.
>>
> Yes, I am aware of how it works and that it is not error handling :) But my
> question was, do we really want the window manager to crash because of a
> problem in a single dialog ?
>
> Yea, for official deployment (read distro packages), but what of people who
> decide to build from svn anyway (to get the latest code) ? They may not be
> aware of NDEBUG...

actually compiling with NDEBUG removes the abort(), but it will likely
crash anyway, it will just be a bit harder to identify the root of the
problem.


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Download Intel&#174; 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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to