macro name from macro?

Discussion in 'C Programming' started by D Senthil Kumar, Sep 20, 2003.

  1. Hi,
    Is it possible to get the name of the macro from that macro itself.
    Thank you in advance.
    D Senthil Kumar, Sep 20, 2003
    #1
    1. Advertising

  2. D Senthil Kumar

    Jack Klein Guest

    On 20 Sep 2003 04:14:58 -0700, (D Senthil
    Kumar) wrote in comp.lang.c:

    > Hi,
    > Is it possible to get the name of the macro from that macro itself.
    > Thank you in advance.


    Sure, by reading the definition of the macro.

    If that is not what you meant, post again. Your question is very
    ambiguous, so use more words and perhaps even a small code snippet as
    an example of what you want to do. It is clear in your mind, but you
    have not made it clear to others.

    --
    Jack Klein
    Home: http://JK-Technology.Com
    FAQs for
    comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
    comp.lang.c++ http://www.parashift.com/c -faq-lite/
    alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c /faq
    Jack Klein, Sep 21, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?iso-8859-1?B?bW9vcJk=?=
    Replies:
    7
    Views:
    810
    Roedy Green
    Jan 2, 2006
  2. ding feng
    Replies:
    2
    Views:
    2,790
    ding feng
    Jun 25, 2003
  3. sounak

    to get macro name from macro value

    sounak, Nov 22, 2005, in forum: C Programming
    Replies:
    17
    Views:
    488
    Mark McIntyre
    Nov 22, 2005
  4. Bobby Chamness
    Replies:
    2
    Views:
    2,380
    Joe Smith
    Apr 22, 2007
  5. Jack-2
    Replies:
    3
    Views:
    255
    Jack-2
    Dec 24, 2003
Loading...

Share This Page