🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309949

Re: Błąd preprocesora czy czegoś nie rozumiem?

#309949
From: Queequeg
Date: Fri, 04 Oct 2019 14:01
12 lines
1326 bytes
M.M. <mmarszik@gmail.com> wrote:

> Od czego zależy kiedy rozwija makro __LINE__ a kiedy nie?

https://gcc.gnu.org/onlinedocs/cpp/Concatenation.html

"As with stringizing, the actual argument is not macro-expanded first."

Btw, polecam gcc z opcją -E. Zobaczysz wtedy dokładnie, co się dzieje.

-- 
https://www.youtube.com/watch?v=9lSzL1DqQn0
Technical Details
Message-ID: <17ac5a21-9e51-4819-9ddd-9173cc6d5e25@trust.no1>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.pi.v.chmurka.net!not-for-mail
References: <780a7f39-337b-4b6b-810f-7c4151e10f74@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.pi.v.chmurka.net!not-for-mail
From: queequeg@trust.no1 (Queequeg)
Newsgroups: pl.comp.lang.c
Subject: Re: Błąd preprocesora czy
 czegoś nie rozumiem?
Date: Fri, 4 Oct 2019 14:01:30 +0000 (UTC)
Organization: news.chmurka.net
Message-ID: <17ac5a21-9e51-4819-9ddd-9173cc6d5e25@trust.no1>
References: <780a7f39-337b-4b6b-810f-7c4151e10f74@googlegroups.com>
NNTP-Posting-Host: pi.v.chmurka.net
Mime-Version: 1.0
Injection-Date: Fri, 4 Oct 2019 14:01:30 +0000 (UTC)
Injection-Info: vps.chmurka.net; posting-account="queequeg"; posting-host="pi.v.chmurka.net:172.24.44.20"; logging-data="15639"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.57-v7+ (armv7l))
Cancel-Lock: sha1:mI6I+3QLenOGfzNGtFJ2Su0a0nA=
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit