Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

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


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.

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

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


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

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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:42 PM.

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