public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Typo in assert error message causing confusion?
@ 2013-10-01  9:01 Daniel Zebralla
  2013-10-01 15:27 ` Michael Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Zebralla @ 2013-10-01  9:01 UTC (permalink / raw)
  To: ecos-discuss

From /host/infra/cyg_ass.h as well as /host/infra/cyg/infra/cyg_ass.h:

# define CYG_CHECK_DATA_PTRC( _ptr_ )                   \
         CYG_MACRO_START                                \
         if ( !cyg_check_data_ptr((void *)(_ptr_)))     \
             CYG_ASSERT_DOCALL("data pointer (" #_ptr_ ") is valid");\
         CYG_MACRO_END

# define CYG_CHECK_FUNC_PTRC( _ptr_ )                       \
         CYG_MACRO_START                                    \
         if ( !cyg_check_func_ptr((void (*)(void))(_ptr_))) \
             CYG_ASSERT_DOCALL("function pointer (" #_ptr_ ") is valid"); \
         CYG_MACRO_END

As I understand, CYG_ASSERT_DOCALL is triggered when the checked data or
function pointer is invalid. The printed message however indicates that the
checked pointer is valid. Is this an error or am I misunderstanding the
usage of CYG_ASSERT_DOCALL here?

Thanks for clarification!



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Typo-in-assert-error-message-causing-confusion-tp245807.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

end of thread, other threads:[~2013-10-02 12:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-01  9:01 [ECOS] Typo in assert error message causing confusion? Daniel Zebralla
2013-10-01 15:27 ` Michael Jones
2013-10-02 11:26   ` [ECOS] " Daniel Zebralla
2013-10-02 12:00     ` Stanislav Meduna

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).