]> code.delx.au - pulseaudio/blob - polyp/cdecl.h
implement proper refcounting in polyplib
[pulseaudio] / polyp / cdecl.h
1 #ifndef foocdeclhfoo
2 #define foocdeclhfoo
3
4 /** \file
5 * C++ compatibility support */
6
7 #ifdef __cplusplus
8 /** If using C++ this macro enables C mode, otherwise does nothing */
9 #define PA_C_DECL_BEGIN extern "C" {
10 /** If using C++ this macros switches back to C++ mode, otherwise does nothing */
11 #define PA_C_DECL_END }
12
13 #else
14 /** If using C++ this macro enables C mode, otherwise does nothing */
15 #define PA_C_DECL_BEGIN
16 /** If using C++ this macros switches back to C++ mode, otherwise does nothing */
17 #define PA_C_DECL_END
18
19 #endif
20
21 #endif