[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++, assert and NDEBUG

From: Rhys Ulerich
Subject: Re: C++, assert and NDEBUG
Date: Sat, 27 Mar 2010 17:52:46 -0500

> I have started using autotools for the C++ applications I create (very
> much as an amateur). I typically use assert statements during
> development, and would disable these by using -DNDEBUG when the release
> version is built. How should I configure things so that when a user
> installs from the tarball they compile by default with the -DNDEBUG
> option?

Attached is a macro that I use to enable/disable debugging via
configure time option.  Contrary to the header, it is not in the
autoconf macro archive.  Feedback welcome.

- Rhys

Attachment: ax_check_enable_debug.m4
Description: application/m4

reply via email to

[Prev in Thread] Current Thread [Next in Thread]