Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 1998 05:10:47 -0500 (EST)
From:      Peter Dufault <dufault@hda.com>
To:        shimon@simon-shapiro.org
Cc:        current@FreeBSD.ORG
Subject:   Re: A question about sys/sys/queue.h
Message-ID:  <199803131010.FAA01489@hda.hda.com>
In-Reply-To: <XFMail.980312215107.shimon@simon-shapiro.org> from Simon Shapiro at "Mar 12, 98 09:51:07 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> cute.  Wonder what the compiled code looks like...

This is a standard idiom safe to use around "ifs" etc without extra
curly braces -

if (test)
	this_macro_expands_ok();

the generated code is fine even on some bad DSP and microcontroller
compilers I use.  I try to always use this.

Peter

-- 
Peter Dufault (dufault@hda.com)   Realtime development, Machine control,
HD Associates, Inc.               Safety critical systems, Agency approval

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803131010.FAA01489>