#if defined(__cplusplus) in Kernel
Hi,
In places there are statement like ... #if defined(__cplusplus) //do something. For example, in include/linux/stddef.h , Code:
#if defined(__cplusplus) |
See if the below link helps you !
http://developers.sun.com/solaris/ar...l_linkage.html |
So I am curious ravi as to how many times and in how many different ways you are going to ask how #define works in C++???
Also, do you not have access to any search engines? Simply pasting in __cplusplus in google has over 200K hits and if you are really as capable as you have said with C I cannot for the life of me workout why you are unable to get / understand this information. |
Quote:
I know what is the meaning of the statement and #define works in C or C++. I think I have to clarify my question bit more. Quote:
My guess is that there must be some strong reason for it. I wanted to know that ??? And I again what to say that I am learning internals of kernel and trying to find out why thing are done the way it is. I approached the way to learn by directly looking into code itself. |
Quote:
in the compilation of the kernel. However, what we are saying is that if you choose to take portions of particular files, as you have been doing, that not all pieces are immediately transferable. Point in case, if you took only part of the code you have highlighted: Quote:
hence why the reference to: Quote:
Quote:
questions about the exact same topic several times. |
All times are GMT -5. The time now is 05:46 AM. |