All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] XENO_ASSERT limitation
Date: Fri, 03 Mar 2006 23:28:22 +0100	[thread overview]
Message-ID: <4408C306.3000109@domain.hid> (raw)
In-Reply-To: <44088DE2.6090100@domain.hid>

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.


      reply	other threads:[~2006-03-03 22:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-03 18:41 [Xenomai-core] XENO_ASSERT limitation Jan Kiszka
2006-03-03 22:28 ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4408C306.3000109@domain.hid \
    --to=rpm@xenomai.org \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.