Hi,
What does "#ifdef" and "#endif" stand for are these some sort of macros to check if something is defined??
Any help would be appreciated.
Hi,
What does "#ifdef" and "#endif" stand for are these some sort of macros to check if something is defined??
Any help would be appreciated.
they are used in header files
+++
++
+ Sekti
++
+++
#ifdef and #endif are preprocessor directives used mostly in .h files. These particular directives, along with #ifndef, are used for instance as "include guards". Include guards in header files containing class declarations is one very good use of these. Multiple declarations of a class in C++ is forbidden.