develooper Front page | perl.perl5.porters | Postings from November 2014

[perl #123063] Perl's assert macro breaks C/POSIX standards

From:
Tony Cook via RT
Date:
November 12, 2014 02:54
Subject:
[perl #123063] Perl's assert macro breaks C/POSIX standards
Message ID:
rt-4.0.18-18441-1415760891-921.123063-15-0@perl.org
On Sun Oct 26 15:55:17 2014, bulk88 wrote:
> C89
> -----------------------------------------------------------------
> If NDEBUG is defined as a macro name at the point in the source file
> where <assert.h> is included, the assert macro is defined simply as
> 
> #define assert(ignore) ((void)0)
> 
> The assert macro shall be implemented as a macro, not as an actual
> function.

Possible patch attached.

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=123063



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About