LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 05-24-2005, 02:16 PM   #1
saravkrish
Member
 
Registered: Mar 2004
Location: KY, USA
Distribution: Fedora Core 1
Posts: 190

Rep: Reputation: 30
#defining a macro inside a macro?


Hi,

Is there anyway something similar to this could be done?

#define TEST(a,b,c) #define a b,c

1. The example above is actually a very simple version of what I want to do.
2. It might seem straight forward to simply do #define a b,c instead of calling TEST(a,b,c), but the real case where I want to use this makes much more sense than this.

Thanks,
Sarav
 
Old 05-24-2005, 09:48 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
I'm 90% sure it can't be done using cpp, but m4 can do it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using m4 macro processor deveshs Programming 2 10-10-2005 04:24 AM
write a macro ...? matarodi Linux - Software 2 05-17-2005 10:58 AM
about DO_COMPRESS macro haodongdong Programming 0 05-07-2005 04:43 AM
keyboard macro samshiver Linux - Software 1 01-11-2004 05:33 PM
macro linuxanswer Programming 1 11-17-2003 03:58 PM


All times are GMT -5. The time now is 09:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration