public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* assert customization
@ 2008-10-08 16:30 jchristof
  2008-10-10 15:33 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: jchristof @ 2008-10-08 16:30 UTC (permalink / raw)
  To: gcc-help


What's the proper way to provide assert customization? It appears that I
might need to provide a definition for 

void _EXFUN(__assert,(const char *, int, const char *));

When I do provide a definition, it isn't called. NDEBUG is not defined, so I
must be including incorrectly.

Thanks!
-- 
View this message in context: http://www.nabble.com/assert-customization-tp19882482p19882482.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: assert customization
  2008-10-08 16:30 assert customization jchristof
@ 2008-10-10 15:33 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2008-10-10 15:33 UTC (permalink / raw)
  To: jchristof; +Cc: gcc-help

jchristof <jchristofmartin@gmail.com> writes:

> What's the proper way to provide assert customization? It appears that I
> might need to provide a definition for 
>
> void _EXFUN(__assert,(const char *, int, const char *));
>
> When I do provide a definition, it isn't called. NDEBUG is not defined, so I
> must be including incorrectly.

This is a library question, not a gcc question.  gcc does not provide
<assert.h> (it used to, but it no longer does).  The answer depends on
the library you are using.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-10 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-08 16:30 assert customization jchristof
2008-10-10 15:33 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).