What’s the meaning of __typeof keyword in Objective-C context?
What’s the meaning of __typeof keyword in Objective-C context?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
__typeofkeyword has the same meaning as thetypeofkeyword: it is used at compile-time instead of an explicit type, to mean the type of its parameter.You will see
__typeofin system header files because thetypeofkeyword is non-standard. So thetypeofkeyword can be disabled by a compiler flag, or the user can#defineit to mean something else. The C language standard reserves all identifiers that start with__for use by the compiler, so the compiler can define the__typeofkeyword even when thetypeofkeyword is disabled, and the user is not supposed to#defineit to mean something else.