Skip to contentSkip to conversation

XENO_ASSERT limitation

Xenomai-core Jan Kiszka 2 participants 2 messages Mar 3, 2006

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Jan Kiszka

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.

Quoted 14 lines

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
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.