|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] [RFC] Add glib support to main loop |
Date: | Wed, 27 Jul 2011 16:32:41 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10 |
On 07/27/2011 04:21 PM, Stefan Weil wrote:
NDEBUG is normally set automatically for production code, and it disables assertions which is not always good. Assertions are useful even in production code unless you are sure that the code is bug free or the assertions cost to much resources - either memory or execution time. I don't think this is the case for QEMU, therefore I'd prefer having assertions in production code, too. This simply means undefining NDEBUG before including assert.h.
I don't know what constitutes "production builds" but the software that most people use in production (normal distributions packages) don't define NDEBUG.
Regards, Anthony Liguori
Regards, Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |