* [Xenomai-core] XENO_ASSERT limitation
@ 2006-03-03 18:41 Jan Kiszka
2006-03-03 22:28 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2006-03-03 18:41 UTC (permalink / raw)
To: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
Hi,
I noticed and appreciated the new XENO_ASSERT macro. But when looking at
it more closely, I wondered how to express actions like this:
bail_out("something is broken");
return -ENOTGOOD;
The "action" parameter is only considering printing. Why not leaving
this part completely in user's hand?
(sorry, no Xenomai checkout at hand, thus no patch)
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [Xenomai-core] XENO_ASSERT limitation
2006-03-03 18:41 [Xenomai-core] XENO_ASSERT limitation Jan Kiszka
@ 2006-03-03 22:28 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2006-03-03 22:28 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Hi,
>
> I noticed and appreciated the new XENO_ASSERT macro. But when looking at
> it more closely, I wondered how to express actions like this:
>
> bail_out("something is broken");
> return -ENOTGOOD;
>
Ok, albeit I very much dislike macros that could cause weird control flow issues,
I must admit that limiting the action field in the generic assertion helper would
be rather arbitrary. The new version avoids this. Thanks.
> The "action" parameter is only considering printing. Why not leaving
> this part completely in user's hand?
> (sorry, no Xenomai checkout at hand, thus no patch)
>
> Jan
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
--
Philippe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-03 22:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-03 18:41 [Xenomai-core] XENO_ASSERT limitation Jan Kiszka
2006-03-03 22:28 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.