Article View: comp.lang.c.moderated
Article #2494Re: Interesting compile-time assertion macro
From: Konrad Schwarz
Date: Thu, 04 Apr 1996 01:10
Date: Thu, 04 Apr 1996 01:10
13 lines
887 bytes
887 bytes
In article <4jq1lg$a67@solutions.solon.com>, Mike Coffman <coffman@cat.com> writes: |> #if test_condition |> #error error message |> #endif |> The only overhead/disadvantage to your technique is that once I get my |> code to compile successfully I have a number of structures composed of |> one element character arrays taking up a little space. You're forgetting sizeof expressions. Konrad Schwarz
Technical Details
Message-ID:
<4jv7hl$d5n@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4jol55$1pi@solutions.solon.com> <4jq1lg$a67@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: schwarz@mips.complang.tuwien.ac.at (Konrad Schwarz) Newsgroups: comp.lang.c.moderated Subject: Re: Interesting compile-time assertion macro Date: 3 Apr 1996 19:10:13 -0600 Organization: TU Wien Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4jv7hl$d5n@solutions.solon.com> References: <4jol55$1pi@solutions.solon.com> <4jq1lg$a67@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com