pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:594:    */      /*! @directive #ifdef    *!    *! Check whether an identifier is a macro.    *!    *! The directive    *!    *! @tt{#ifdef @i{<identifier>@}@}    *! -  *! is equvivalent to +  *! is equivalent to    *!    *! @tt{#if @[defined](@i{<identifier>@})@}    *!    *! @seealso    *! @[#if], @[#ifndef], @[defined]    */      /*! @directive #ifndef    *!    *! Check whether an identifier is not a macro.    *!    *! This is the inverse of @[#ifdef].    *!    *! The directive    *!    *! @tt{#ifndef @i{<identifier>@}@}    *! -  *! is equvivalent to +  *! is equivalent to    *!    *! @tt{#if !@[defined](@i{<identifier>@})@}    *!    *! @seealso    *! @[#if], @[#ifdef], @[defined]    */      /*! @directive #require    *!    *! If the directive evaluates to false, the source file will be
pike.git/src/cpp.cmod:669:    */      /*! @directive #elif    *! @directive #elseif    *!    *! These work as a combined @[#else] and @[#if] without    *! adding an extra level of nesting.    *!    *! @example    *! -  *! The following two are equvivalent: +  *! The following two are equivalent:    *!    *! @code    *! #ifdef A    *! // Code for A.    *! #else    *! #ifdef B    *! // Code for B.    *! #else    *! #ifdef C    *! // Code for C.
pike.git/src/cpp.cmod:903:      /*! @decl int(0..1) defined(mixed identifier)    *!    *! Check whether an identifier is a cpp macro or not.    *!    *! @returns    *! @[defined] returns true if the symbol given as argument    *! is defined.    *!    *! @note -  *! @tt{#if defined(MY_DEF)@} is equvivalent to +  *! @tt{#if defined(MY_DEF)@} is equivalent to    *! @tt{#ifdef MY_DEF@}.    *!    *! @seealso    *! @[#if], @[#ifdef], @[constant()]    */   static void check_defined(struct CPP_struct *this,    struct define_struct *UNUSED(def),    struct pike_string *arg,    struct string_builder *tmp)   {