what is #define __P(proto) proto in C

This is a discussion on what is #define __P(proto) proto in C within the C Programming forums, part of the General Programming Boards category; Hi friends. I was reading a program ( C language) in an article. It has defined this macro... #define __P(proto) ...

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    29

    what is #define __P(proto) proto in C

    Hi friends.

    I was reading a program ( C language) in an article.

    It has defined this macro...

    #define __P(proto) proto

    what is significance of this macro.

    Thanks..

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    It means that whenever you see __P(proto), that the result of that will be proto. Outside of reading the article, how are we supposed to know what it means?

    Nevertheless, if you had bothered to google to figure this one out, you might have discovered it is part of a macro combination to provide backwards compatibility with K&R C.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer within a Struct
    By Bladactania in forum C Programming
    Replies: 11
    Last Post: 04-03-2009, 11:20 PM
  2. Compiling error: Too many arguments.
    By Tuah in forum C++ Programming
    Replies: 16
    Last Post: 06-10-2008, 05:28 PM
  3. Would someone solve my problem?
    By Lonners in forum C Programming
    Replies: 9
    Last Post: 01-19-2008, 06:58 PM
  4. Please STICKY this- vital to MSVC 6 dev - BASETSD.h
    By VirtualAce in forum Game Programming
    Replies: 11
    Last Post: 03-15-2005, 09:22 AM
  5. float toolbar!
    By c-- in forum Windows Programming
    Replies: 5
    Last Post: 02-04-2003, 09:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21