- Timestamp:
- Nov 16, 2007 3:49:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/config.h
r1410 r1581 696 696 697 697 /** 698 * @def PJ_DECL_NO_RETURN(type)699 * @param type The return type of the function.700 * Declare a function that will not return.701 */702 /**703 * @def PJ_BEGIN_DECL704 * Mark beginning of declaration section in a header file.705 */706 /**707 * @def PJ_END_DECL708 * Mark end of declaration section in a header file.709 */710 #ifdef __cplusplus711 # define PJ_DECL_NO_RETURN(type) type PJ_NORETURN712 # define PJ_IDECL_NO_RETURN(type) PJ_INLINE(type) PJ_NORETURN713 # define PJ_BEGIN_DECL extern "C" {714 # define PJ_END_DECL }715 #else716 # define PJ_DECL_NO_RETURN(type) PJ_NORETURN type717 # define PJ_IDECL_NO_RETURN(type) PJ_NORETURN PJ_INLINE(type)718 # define PJ_BEGIN_DECL719 # define PJ_END_DECL720 #endif721 722 723 /**724 698 * This macro declares platform/compiler specific specifier prefix 725 699 * to be added to symbol declaration to export the symbol when PJLIB … … 800 774 801 775 /** 776 * @def PJ_DECL_NO_RETURN(type) 777 * @param type The return type of the function. 778 * Declare a function that will not return. 779 */ 780 /** 781 * @def PJ_BEGIN_DECL 782 * Mark beginning of declaration section in a header file. 783 */ 784 /** 785 * @def PJ_END_DECL 786 * Mark end of declaration section in a header file. 787 */ 788 #ifdef __cplusplus 789 # define PJ_DECL_NO_RETURN(type) PJ_DECL(type) PJ_NORETURN 790 # define PJ_IDECL_NO_RETURN(type) PJ_INLINE(type) PJ_NORETURN 791 # define PJ_BEGIN_DECL extern "C" { 792 # define PJ_END_DECL } 793 #else 794 # define PJ_DECL_NO_RETURN(type) PJ_NORETURN PJ_DECL(type) 795 # define PJ_IDECL_NO_RETURN(type) PJ_NORETURN PJ_INLINE(type) 796 # define PJ_BEGIN_DECL 797 # define PJ_END_DECL 798 #endif 799 800 801 802 /** 802 803 * @def PJ_DECL_DATA(type) 803 804 * @param type The data type.
Note: See TracChangeset
for help on using the changeset viewer.