From: <snodx@hotmail.com>
To: <gcc-help@gcc.gnu.org>
Subject: Spam: Can macros be expanded only during the start of a program?
Date: Mon, 30 Aug 2004 08:40:00 -0000 [thread overview]
Message-ID: <00a801c48e6c$9911a8a0$940318ac@mahindrabt.com> (raw)
Hi everybody,
I am trying out a rather complex build of an open source package containing
some hundreds of '.c' and '.h' modules. I am getting stuck up at one point.
The portion of the code that is failing goes something like this (in
pseudocode language)
.......Statement..........
.......Statement..........
MACRO EXPANSION
.......Statement..........
.......Statement..........
The macro is mapped to a function and the expansion occurs in between some
set of statements. The make is failing at this line with the error:
MACRO EXPANSION
Invalid statement
I am looking into the problem. However I just wanted to know one thing (a
newbie question you could say), just as in between a set of statements you
cant declare a new variable by saying "int x" or something is it also the
case that macros can only be expanded only at the declaration-of-variables
stage?
Thanks in advance.
SNODX
next reply other threads:[~2004-08-30 8:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-30 8:40 snodx [this message]
2004-08-30 10:52 ` Falk Hueffner
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='00a801c48e6c$9911a8a0$940318ac@mahindrabt.com' \
--to=snodx@hotmail.com \
--cc=gcc-help@gcc.gnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).