🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.objects
Article #15802

Re: Długie makro

#15802
From: Adam Karpierz
Date: Sun, 04 Mar 2007 18:00
17 lines
1414 bytes
"Marcin O." <kolo25@onet.eu> wrote:

> Mam do zdefiniowania długie makro w C++ pod VS2005. Jak mozna złamać makro 
> na swie linijki?
>
> #define (a, b, c, d, e, f, g, h, i, j, k, l)        a * (b+1) * (c+2) * 
> (d+3) * (e+4) * (f+5) * (g+6) * (h+7) * (i+8) * (j+9) * (k+10) * (l*11)
>
> Kto sie spotkał z tym problemem??

inline x(a, b, c, d, e, f, g, h, i, j, k, l)
{
    return a * (b+1) * (c+2) * (d+3) * (e+4) * (f+5) *
               (g+6) * (h+7) * (i+8) * (j+9) * (k+10) * (l*11) ;
}

AK
Technical Details
Message-ID: <esf1g5$kh$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <es7lm1$3qr$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "Adam Karpierz" <karpierz@NOOOOSPAAAAMpython.pl>
Newsgroups: pl.comp.objects
Subject: Re: Długie makro
Date: Sun, 4 Mar 2007 19:00:35 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 19
Message-ID: <esf1g5$kh$1@inews.gazeta.pl>
References: <es7lm1$3qr$1@news.onet.pl>
NNTP-Posting-Host: nat-dem.mentorg.com
X-Trace: inews.gazeta.pl 1173031237 657 213.69.244.34 (4 Mar 2007 18:00:37 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sun, 4 Mar 2007 18:00:37 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Priority: 3
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-User: karpierz
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit