Thread: what is #define __P(proto) proto in C

  1. #1
    Registered User
    Join Date
    Sep 2007

    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.


  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    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, 10:20 PM
  2. Compiling error: Too many arguments.
    By Tuah in forum C++ Programming
    Replies: 16
    Last Post: 06-10-2008, 04: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